Merge pull request #53 from CallumOz/master

Fixed the use of the ?? operator because Swift is broken
This commit is contained in:
Erik Little 2015-04-13 10:10:40 -04:00
commit e6ecf34507

View File

@ -366,7 +366,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketLogClient
SocketLogger.log("Client: Handling ack: \(ack) with data: \(data)", client: self) SocketLogger.log("Client: Handling ack: \(ack) with data: \(data)", client: self)
self.ackHandlers.executeAck(ack, self.ackHandlers.executeAck(ack,
items: data as? [AnyObject]? ?? data != nil ? [data!] : nil) items: (data as? [AnyObject]?) ?? (data != nil ? [data!] : nil))
} }
/** /**