aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-12-12 15:33:14 -0600
committerEric Kuck <eric@bluelinelabs.com>2018-12-12 15:33:14 -0600
commite4ac48bc75064c0e144020ded1ed877d226742c8 (patch)
treeffee70e6c957a717cc8a6b805e6cefa59ed05bc7 /WireGuard/Shared/NETunnelProviderProtocol+Extension.swift
parentTons more swiftlint warnings fixed. Still a few remaining. (diff)
downloadwireguard-apple-e4ac48bc75064c0e144020ded1ed877d226742c8.tar.xz
wireguard-apple-e4ac48bc75064c0e144020ded1ed877d226742c8.zip
More linter warnings fixed, enabled more swiftlint rules, project cleanup
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/Shared/NETunnelProviderProtocol+Extension.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift
index ec8b294a..960bf228 100644
--- a/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift
+++ b/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift
@@ -17,7 +17,7 @@ extension NETunnelProviderProtocol {
"tunnelConfigurationVersion": 1
]
- let endpoints = tunnelConfiguration.peers.compactMap({$0.endpoint})
+ let endpoints = tunnelConfiguration.peers.compactMap {$0.endpoint}
if endpoints.count == 1 {
serverAddress = endpoints.first!.stringRepresentation()
} else if endpoints.isEmpty {