Add tests for session descripion functions

Also removed some unnecessary code
This commit is contained in:
Cecylia Bocovich 2019-11-04 13:48:22 -05:00
parent 3ec2e8b89e
commit 32bec89a84
2 changed files with 82 additions and 4 deletions

View file

@ -493,10 +493,6 @@ func deserializeSessionDescription(msg string) *webrtc.SessionDescription {
stype = webrtc.SDPTypeRollback
}
if err != nil {
log.Println(err)
return nil
}
return &webrtc.SessionDescription{
Type: stype,
SDP: parsed["sdp"].(string),