Commit db1ba479 authored by David Fifield's avatar David Fifield
Browse files

Simplify NewWebRTCDialer.

parent 2fb52c86
......@@ -125,13 +125,8 @@ type WebRTCDialer struct {
}
func NewWebRTCDialer(broker *BrokerChannel, iceServers []webrtc.ICEServer) *WebRTCDialer {
var config webrtc.Configuration
if iceServers != nil {
config = webrtc.Configuration{
ICEServers: iceServers,
}
} else {
config = webrtc.Configuration{}
config := webrtc.Configuration{
ICEServers: iceServers,
}
return &WebRTCDialer{
BrokerChannel: broker,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment