Skip to content

Commit f137e1d

Browse files
committed
SwiftLint
1 parent d84eb7d commit f137e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/PubNub/Networking/Request/Request.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ final class Request {
101101

102102
deinit {
103103
PubNub.log.debug("Request Destroyed \(requestID)")
104-
104+
105105
let currentState = atomicState.lockedRead { $0 }
106106
let taskState = currentState.taskState
107-
107+
108108
// Ensure that the response is always delivered to the caller. This situation could occur if the task is created
109109
// but not yet resumed, and the session is invalidated in the meantime.
110110
if taskState == .initialized {
111111
let error = PubNubError(.clientCancelled)
112112
atomicState.lockedWrite { $0.error = error }
113113
finish(error: error)
114114
}
115-
115+
116116
atomicState.lockedWrite { $0.purgeAll() }
117117
}
118118

0 commit comments

Comments
 (0)