WireGuardKit: Assert that resolutionResults must not contain failures

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov 2020-12-02 13:54:31 +01:00
parent b34625f511
commit 9c38a1b897
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ public class WireGuardAdapter {
}
let resolvedEndpoints = resolutionResults.map { (result) -> Endpoint? in
return try? result?.get()
return try! result?.get()
}
return resolvedEndpoints