From 00bd826096ce7918b158413c96e5aaa2aeb119ff Mon Sep 17 00:00:00 2001 From: Davide Date: Wed, 30 Oct 2024 10:15:38 +0100 Subject: [PATCH] Fix error unwrapping (previous commit) --- .../Library/Sources/AppUIMain/Business/ProfileImporter.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Passepartout/Library/Sources/AppUIMain/Business/ProfileImporter.swift b/Passepartout/Library/Sources/AppUIMain/Business/ProfileImporter.swift index 4654bd58..5ba9009c 100644 --- a/Passepartout/Library/Sources/AppUIMain/Business/ProfileImporter.swift +++ b/Passepartout/Library/Sources/AppUIMain/Business/ProfileImporter.swift @@ -59,9 +59,7 @@ final class ProfileImporter: ObservableObject { registry: registry ) } catch { - if let error = error as? PassepartoutError, - let reason = error.reason as? PassepartoutError, - reason.code == .OpenVPN.passphraseRequired { + if let error = error as? PassepartoutError, error.code == .OpenVPN.passphraseRequired { withPassphrase.append(url) continue }