Skip to content

Commit

Permalink
tweak function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Mar 25, 2024
1 parent 906cfc8 commit 36d2c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KukaiCoreSwift/Services/ErrorHandlingService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ public struct KukaiError: CustomStringConvertible, Error {
/**
Allow the delegate of the error callback the ability to decide what errors to log or not by detecting the high level type of error being generated
*/
public func isTimeout(_ kukaiError: KukaiError) -> Bool {
return kukaiError.underlyingError?.domain == "NSURLErrorDomain" && kukaiError.underlyingError?.code == -1001
public func isTimeout() -> Bool {
return self.underlyingError?.domain == "NSURLErrorDomain" && self.underlyingError?.code == -1001
}
}

Expand Down

0 comments on commit 36d2c27

Please sign in to comment.