Skip to content

Commit 61b4628

Browse files
committed
only use self when needed
1 parent 77ed87d commit 61b4628

File tree

4 files changed

+278
-285
lines changed

4 files changed

+278
-285
lines changed

SocketIOClientSwift/SocketAckManager.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ struct SocketAckManager {
5353
private var acks = Set<SocketAck>(minimumCapacity: 1)
5454

5555
mutating func addAck(ack:Int, callback:AckCallback) {
56-
self.acks.insert(SocketAck(ack: ack, callback: callback))
56+
acks.insert(SocketAck(ack: ack, callback: callback))
5757
}
5858

5959
mutating func executeAck(ack:Int, items:[AnyObject]?) {
60-
let callback = self.acks.remove(SocketAck(ack: ack))
60+
let callback = acks.remove(SocketAck(ack: ack))
6161

6262
dispatch_async(dispatch_get_main_queue()) {
6363
callback?.callback(items)
6464
}
6565
}
6666

6767
mutating func timeoutAck(ack:Int) {
68-
let callback = self.acks.remove(SocketAck(ack: ack))
68+
let callback = acks.remove(SocketAck(ack: ack))
6969

7070
dispatch_async(dispatch_get_main_queue()) {
7171
callback?.callback(["NO ACK"])

0 commit comments

Comments
 (0)