Fix error unwrapping (previous commit)

This commit is contained in:
Davide 2024-10-30 10:15:38 +01:00
parent f48349cde9
commit 00bd826096
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 1 additions and 3 deletions

View File

@ -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
}