Skip to content

Commit b3da89d

Browse files
committed
remove redundant cast
1 parent c91a79f commit b3da89d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SocketIOClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
149149

150150
guard timeoutAfter != 0 else { return }
151151

152-
let time = DispatchTime.now() + Double(Int64(timeoutAfter) * Int64(NSEC_PER_SEC)) / Double(NSEC_PER_SEC)
152+
let time = DispatchTime.now() + Double(UInt64(timeoutAfter) * NSEC_PER_SEC) / Double(NSEC_PER_SEC)
153153

154154
handleQueue.asyncAfter(deadline: time) {[weak self] in
155155
guard let this = self, this.status != .connected && this.status != .disconnected else { return }

0 commit comments

Comments
 (0)