From 9c38a1b89764b3018ae7b44395c86cf565982297 Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Wed, 2 Dec 2020 13:54:31 +0100 Subject: [PATCH] WireGuardKit: Assert that resolutionResults must not contain failures Signed-off-by: Andrej Mihajlov --- WireGuardKit/Sources/WireGuardKit/WireGuardAdapter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WireGuardKit/Sources/WireGuardKit/WireGuardAdapter.swift b/WireGuardKit/Sources/WireGuardKit/WireGuardAdapter.swift index 358ab53..a2c19ba 100644 --- a/WireGuardKit/Sources/WireGuardKit/WireGuardAdapter.swift +++ b/WireGuardKit/Sources/WireGuardKit/WireGuardAdapter.swift @@ -314,7 +314,7 @@ public class WireGuardAdapter { } let resolvedEndpoints = resolutionResults.map { (result) -> Endpoint? in - return try? result?.get() + return try! result?.get() } return resolvedEndpoints