diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-03-02 14:30:47 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-03-17 09:51:04 +0100 |
| commit | 062b9082f7c573eeff272565c84ddb5f5a9665aa (patch) | |
| tree | f22f60dd2702ed51a3ba1760de094df0e4c32712 | |
| parent | 2a28572bc02ce8acff97d38925cdd01dbdeda365 (diff) | |
| download | mullvadvpn-062b9082f7c573eeff272565c84ddb5f5a9665aa.tar.xz mullvadvpn-062b9082f7c573eeff272565c84ddb5f5a9665aa.zip | |
IPC: combine guard statements into one
| -rw-r--r-- | ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift b/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift index 01c31491a1..c634b679e6 100644 --- a/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift +++ b/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift @@ -110,11 +110,7 @@ extension TunnelIPC { } private func handleVPNStatus(_ status: NEVPNStatus) { - guard !isCancelled else { - return - } - - guard !requestSent else { + guard !isCancelled && !requestSent else { return } |
