SocketIOClient: simplified conditional
This commit is contained in:
parent
a43548e203
commit
b8cfdc8fd2
@ -401,7 +401,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient {
|
|||||||
public func off(event: String) {
|
public func off(event: String) {
|
||||||
Logger.log("Removing handler for event: %@", type: logType, args: event)
|
Logger.log("Removing handler for event: %@", type: logType, args: event)
|
||||||
|
|
||||||
handlers = ContiguousArray(handlers.filter {!($0.event == event)})
|
handlers = ContiguousArray(handlers.filter { $0.event != event })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user