Suppress buggy Xcode warnings
@discardableResult annotations became suddenly ineffective.
This commit is contained in:
parent
7f748e6d1e
commit
fbc17877b1
|
@ -75,7 +75,7 @@ extension IntentDispatcher {
|
||||||
}
|
}
|
||||||
Task {
|
Task {
|
||||||
do {
|
do {
|
||||||
try await vpnManager.connect(with: profileId)
|
_ = try await vpnManager.connect(with: profileId)
|
||||||
} catch {
|
} catch {
|
||||||
pp_log.error("Unable to connect with profile \(profileId): \(error)")
|
pp_log.error("Unable to connect with profile \(profileId): \(error)")
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ extension IntentDispatcher {
|
||||||
}
|
}
|
||||||
Task {
|
Task {
|
||||||
do {
|
do {
|
||||||
try await vpnManager.connect(with: profileId, toServer: newServerId)
|
_ = try await vpnManager.connect(with: profileId, toServer: newServerId)
|
||||||
} catch {
|
} catch {
|
||||||
pp_log.error("Unable to connect with profile \(profileId): \(error)")
|
pp_log.error("Unable to connect with profile \(profileId): \(error)")
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,9 @@ extension VPNManager {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if let newServerId = newServerId {
|
if let newServerId = newServerId {
|
||||||
try await connect(with: profileId, toServer: newServerId)
|
_ = try await connect(with: profileId, toServer: newServerId)
|
||||||
} else {
|
} else {
|
||||||
try await connect(with: profileId)
|
_ = try await connect(with: profileId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue