Suppress buggy Xcode warnings

@discardableResult annotations became suddenly ineffective.
This commit is contained in:
Davide De Rosa 2022-10-15 22:29:29 +02:00
parent 7f748e6d1e
commit fbc17877b1
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ extension IntentDispatcher {
}
Task {
do {
try await vpnManager.connect(with: profileId)
_ = try await vpnManager.connect(with: profileId)
} catch {
pp_log.error("Unable to connect with profile \(profileId): \(error)")
}
@ -104,7 +104,7 @@ extension IntentDispatcher {
}
Task {
do {
try await vpnManager.connect(with: profileId, toServer: newServerId)
_ = try await vpnManager.connect(with: profileId, toServer: newServerId)
} catch {
pp_log.error("Unable to connect with profile \(profileId): \(error)")
}

View File

@ -42,9 +42,9 @@ extension VPNManager {
return
}
if let newServerId = newServerId {
try await connect(with: profileId, toServer: newServerId)
_ = try await connect(with: profileId, toServer: newServerId)
} else {
try await connect(with: profileId)
_ = try await connect(with: profileId)
}
}