Skip to content

Commit

Permalink
update check for network failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobitech committed Oct 24, 2024
1 parent af3e048 commit 66533cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/SmileID/Classes/Networking/APIError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ public enum SmileIDError: Error {
static func isNetworkFailure(
error: SmileIDError
) -> Bool {
guard case let .request(urlError) = error else { return false }
let value = urlError.code == .notConnectedToInternet
return value
guard case .request = error else { return false }
return true
}
}

Expand Down

0 comments on commit 66533cf

Please sign in to comment.