mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
redundant break statement.
This commit is contained in:
parent
7ec3d5ac6d
commit
4b39607af0
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user