redundant break statement.

This commit is contained in:
Miroslav Šedivý 2020-10-28 22:24:19 +01:00
parent 7ec3d5ac6d
commit 4b39607af0
2 changed files with 0 additions and 4 deletions

View File

@ -123,10 +123,8 @@ func (manager *WebRTCManager) handle(id string, msg webrtc.DataChannelMessage) e
manager.logger.Debug().Msgf("key up %d", payload.Key)
}
break
case OP_KEY_CLK:
// unused
break
}
return nil

View File

@ -154,7 +154,6 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri
if err = manager.sessions.Destroy(id); err != nil {
manager.logger.Warn().Err(err).Msg("error while destroying session")
}
break
case webrtc.PeerConnectionStateConnected:
manager.logger.Info().Str("id", id).Msg("peer connected")
if err = session.SetConnected(true); err != nil {
@ -163,7 +162,6 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri
manager.logger.Warn().Err(err).Msg("error while destroying session")
}
}
break
}
})