Skip to content

Commit 9cf5308

Browse files
committed
Disable SwiftLint 'force_cast' errors.
1 parent ed66abd commit 9cf5308

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/PusherChannel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ open class PusherChannel: NSObject {
157157
open func handleEvent(event: PusherEvent) {
158158
if let eventHandlerArray = self.eventHandlers[event.eventName] {
159159
for eventHandler in eventHandlerArray {
160+
// swiftlint:disable:next force_cast
160161
eventHandler.callback(event.copy() as! PusherEvent)
161162
}
162163
}

Sources/PusherGlobalChannel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Foundation
2323
*/
2424
internal func handleGlobalEvent(event: PusherEvent) {
2525
for (_, callback) in self.globalCallbacks {
26+
// swiftlint:disable:next force_cast
2627
callback(event.copy() as! PusherEvent)
2728
}
2829
}

0 commit comments

Comments
 (0)