Skip to content

Commit 8e8839a

Browse files
committed
Simplify timeElapsed calculation
1 parent 1595c38 commit 8e8839a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Sources/NetworkingCore/Network/AlamofireNetworkErrorHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ final class AlamofireNetworkErrorHandler {
146146
return false
147147
}
148148

149-
let timeElapsed = Date().timeIntervalSince1970 - flagDate.timeIntervalSince1970
149+
let timeElapsed = Date().timeIntervalSince(flagDate)
150150
if timeElapsed < Constants.flagRefreshDuration {
151151
return true
152152
} else {

0 commit comments

Comments
 (0)