remove redundant nil check
This commit is contained in:
parent
c4a1391b70
commit
7b5c1f14d4
@ -180,11 +180,6 @@ class SocketIOClient: NSObject, SRWebSocketDelegate {
|
||||
|
||||
for handler in self.handlers {
|
||||
if handler.event == event && !multipleItems {
|
||||
if data == nil {
|
||||
handler.executeCallback(nil)
|
||||
continue
|
||||
}
|
||||
|
||||
handler.executeCallback(data)
|
||||
} else if handler.event == event && multipleItems {
|
||||
if let arr = data as? [AnyObject] {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user