From 1e9c806614d944b689ed910d0f15679913869535 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 15 Dec 2018 04:42:11 +0100 Subject: Fix confusing indentation Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/UI/TunnelViewModel.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift index d542f98..7e19bb7 100644 --- a/WireGuard/WireGuard/UI/TunnelViewModel.swift +++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift @@ -64,9 +64,7 @@ class TunnelViewModel { scratchpad[field] = stringValue } if field == .privateKey { - if (stringValue.count == TunnelViewModel.keyLengthInBase64), - let privateKey = Data(base64Encoded: stringValue), - privateKey.count == TunnelConfiguration.keyLength { + if stringValue.count == TunnelViewModel.keyLengthInBase64, let privateKey = Data(base64Encoded: stringValue), privateKey.count == TunnelConfiguration.keyLength { let publicKey = Curve25519.generatePublicKey(fromPrivateKey: privateKey) scratchpad[.publicKey] = publicKey.base64EncodedString() } else { -- cgit v1.2.3-59-g8ed1b