summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-11-02 13:28:57 +0100
committerAndrej Mihajlov <and@mullvad.net>2022-11-02 16:10:23 +0100
commit4c902b5cad6d1a7aefa5f1fe46e8337bd3d00c8f (patch)
tree58a395d6e77f5331c1a9f0f59cfeea8d07721db5
parent81afac6ea90d0ac6de62cc4de1284bbec3953636 (diff)
downloadmullvadvpn-4c902b5cad6d1a7aefa5f1fe46e8337bd3d00c8f.tar.xz
mullvadvpn-4c902b5cad6d1a7aefa5f1fe46e8337bd3d00c8f.zip
Fix compiler error when running on older Xcode
-rw-r--r--ios/MullvadVPN/TunnelManager/TunnelManager.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/TunnelManager/TunnelManager.swift b/ios/MullvadVPN/TunnelManager/TunnelManager.swift
index 9aa731551f..5061230e17 100644
--- a/ios/MullvadVPN/TunnelManager/TunnelManager.swift
+++ b/ios/MullvadVPN/TunnelManager/TunnelManager.swift
@@ -556,7 +556,7 @@ final class TunnelManager {
_ proxyRequest: ProxyURLRequest,
completionHandler: @escaping (OperationCompletion<ProxyURLResponse, Error>) -> Void
) throws -> Cancellable {
- if let tunnel {
+ if let tunnel = tunnel {
return tunnel.sendRequest(proxyRequest, completionHandler: completionHandler)
} else {
throw UnsetTunnelError()