From 36d2c2762b390f7dad65fb2596ed4ab5ae3c5b7c Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Mon, 25 Mar 2024 17:25:58 +0000 Subject: [PATCH] tweak function definition --- Sources/KukaiCoreSwift/Services/ErrorHandlingService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/KukaiCoreSwift/Services/ErrorHandlingService.swift b/Sources/KukaiCoreSwift/Services/ErrorHandlingService.swift index 2bc3c3bc..f64895fa 100644 --- a/Sources/KukaiCoreSwift/Services/ErrorHandlingService.swift +++ b/Sources/KukaiCoreSwift/Services/ErrorHandlingService.swift @@ -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 } }