From e4ac48bc75064c0e144020ded1ed877d226742c8 Mon Sep 17 00:00:00 2001 From: Eric Kuck Date: Wed, 12 Dec 2018 15:33:14 -0600 Subject: More linter warnings fixed, enabled more swiftlint rules, project cleanup Signed-off-by: Eric Kuck --- WireGuard/Shared/NETunnelProviderProtocol+Extension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WireGuard/Shared/NETunnelProviderProtocol+Extension.swift') diff --git a/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift index ec8b294..960bf22 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 { -- cgit v1.2.3-59-g8ed1b