From: Jason A. Donenfeld Date: Sat, 15 Dec 2018 03:42:11 +0000 (+0100) Subject: Fix confusing indentation X-Git-Tag: 0.0.20181104-6~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e9c806614d944b689ed910d0f15679913869535;p=thirdparty%2Fwireguard-apple.git Fix confusing indentation Signed-off-by: Jason A. Donenfeld --- 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 {