diff options
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/AutomaticKeyRotationManager.swift | 2 | ||||
| -rw-r--r-- | ios/MullvadVPN/RelayCache.swift | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/AutomaticKeyRotationManager.swift b/ios/MullvadVPN/AutomaticKeyRotationManager.swift index 9d6b8677a0..a58940d76f 100644 --- a/ios/MullvadVPN/AutomaticKeyRotationManager.swift +++ b/ios/MullvadVPN/AutomaticKeyRotationManager.swift @@ -228,7 +228,7 @@ class AutomaticKeyRotationManager { nextRotationTime = .now() + .seconds(kRetryIntervalOnFailure) } - case .failure(.rest(.network(let urlError))) where urlError.code == .cancelled: + case .failure(.rest(.network(URLError.cancelled))): os_log(.default, log: tunnelProviderLog, "Key rotation was cancelled") break diff --git a/ios/MullvadVPN/RelayCache.swift b/ios/MullvadVPN/RelayCache.swift index e72c8e9106..fc7a009a02 100644 --- a/ios/MullvadVPN/RelayCache.swift +++ b/ios/MullvadVPN/RelayCache.swift @@ -350,7 +350,7 @@ class RelayCache { case .readPrebundledRelays, .decodePrebundledRelays, .decodeCache: return true - case .readCache(let error as CocoaError) where error.code == .fileReadNoSuchFile: + case .readCache(CocoaError.fileReadNoSuchFile): return true default: |
