Removed unnecessary error check (#505)
This commit is contained in:
parent
8591961512
commit
a0faf9a0d0
1 changed files with 1 additions and 4 deletions
5
wsapi.go
5
wsapi.go
|
@ -732,11 +732,8 @@ func (s *Session) identify() error {
|
|||
s.wsMutex.Lock()
|
||||
err := s.wsConn.WriteJSON(op)
|
||||
s.wsMutex.Unlock()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *Session) reconnect() {
|
||||
|
|
Loading…
Reference in a new issue