Skip to content

Commit 6d1e95a

Browse files
author
Daniel Browne
committed
Resolve SwiftLint warnings
1 parent 284c4bc commit 6d1e95a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sources/Extensions/PusherWebsocketDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,13 @@ extension PusherConnection: WebSocketConnectionDelegate {
9898

9999
public func webSocketDidAttemptBetterPathMigration(result: Result<WebSocketConnection, NWError>) {
100100
switch result {
101-
case .success(_):
101+
case .success:
102102
updateConnectionState(to: .reconnecting)
103103
case .failure(let error):
104104
self.delegate?.debugLog?(message: PusherLogger.debug(for: .errorReceived,
105105
context: """
106106
Path migration error: \(error.debugDescription)
107107
"""))
108-
break
109108
}
110109
}
111110

Sources/Services/PusherConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import NWWebSocket
33

4-
// swiftlint:disable file_length type_body_length unused_closure_parameter
4+
// swiftlint:disable file_length type_body_length
55

66
@objcMembers
77
@objc open class PusherConnection: NSObject {

0 commit comments

Comments
 (0)