Fixed the use of the ?? operator because Swift is broken.
This commit is contained in:
parent
18928c823c
commit
1c3ea76829
@ -366,7 +366,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketLogClient
|
||||
SocketLogger.log("Client: Handling ack: \(ack) with data: \(data)", client: self)
|
||||
|
||||
self.ackHandlers.executeAck(ack,
|
||||
items: data as? [AnyObject]? ?? data != nil ? [data!] : nil)
|
||||
items: (data as? [AnyObject]?) ?? (data != nil ? [data!] : nil))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user