Browse Source

Removed unnecessary error check (#505)

Carson Hoffman 7 years ago
parent
commit
a0faf9a0d0
1 changed files with 1 additions and 4 deletions
  1. 1 4
      wsapi.go

+ 1 - 4
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() {