From e38c4081ecb781b98f5539b5c94a1157f670b202 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 26 Jan 2016 10:51:53 -0500 Subject: [PATCH] comments and style --- Source/SocketEngine.swift | 2 +- Source/SocketEnginePollable.swift | 2 +- Source/SocketIOClient.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/SocketEngine.swift b/Source/SocketEngine.swift index 334ec42..b5ebdf4 100644 --- a/Source/SocketEngine.swift +++ b/Source/SocketEngine.swift @@ -152,7 +152,7 @@ public final class SocketEngine: NSObject, SocketEnginePollable, SocketEngineWeb switch code { case 0: // Unknown transport didError(error) - case 1: // Unknown sid. clear and retry connect + case 1: // Unknown sid. didError(error) case 2: // Bad handshake request didError(error) diff --git a/Source/SocketEnginePollable.swift b/Source/SocketEnginePollable.swift index 8a821cd..b871e2d 100644 --- a/Source/SocketEnginePollable.swift +++ b/Source/SocketEnginePollable.swift @@ -112,7 +112,7 @@ extension SocketEnginePollable { func doLongPoll(req: NSURLRequest) { doRequest(req) {[weak self] data, res, err in - guard let this = self else {return} + guard let this = self else { return } if err != nil || data == nil { DefaultSocketLogger.Logger.error(err?.localizedDescription ?? "Error", type: "SocketEnginePolling") diff --git a/Source/SocketIOClient.swift b/Source/SocketIOClient.swift index 8c3fff7..c349202 100644 --- a/Source/SocketIOClient.swift +++ b/Source/SocketIOClient.swift @@ -96,7 +96,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketParsable /** Not so type safe way to create a SocketIOClient, meant for Objective-C compatiblity. - If using Swift it's recommended to use `init(var socketURL: NSURL, options: Set)` + If using Swift it's recommended to use `init(socketURL: NSURL, options: Set)` */ public convenience init(socketURL: NSURL, options: NSDictionary?) { self.init(socketURL: socketURL, options: options?.toSocketOptionsSet() ?? [])