Browse Source

Removed unreachable (and unneeded) code.

Bruce Marriner 9 years ago
parent
commit
5ae93327e3
1 changed files with 0 additions and 3 deletions
  1. 0 3
      wsapi.go

+ 0 - 3
wsapi.go

@@ -379,9 +379,6 @@ func (s *Session) event(messageType int, message []byte) (err error) {
 			}
 		}
 		return
-		if s.OnMessageUpdate != nil {
-			return
-		}
 	case "MESSAGE_DELETE":
 		stateEnabled := s.StateEnabled && s.State.MaxMessageCount > 0
 		if !stateEnabled && s.OnMessageDelete == nil {