aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuardNetworkExtension/ErrorNotifier.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/WireGuardNetworkExtension/ErrorNotifier.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/WireGuardNetworkExtension/ErrorNotifier.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/ErrorNotifier.swift b/WireGuard/WireGuardNetworkExtension/ErrorNotifier.swift
index f06860a..163535a 100644
--- a/WireGuard/WireGuardNetworkExtension/ErrorNotifier.swift
+++ b/WireGuard/WireGuardNetworkExtension/ErrorNotifier.swift
@@ -20,6 +20,6 @@ class ErrorNotifier {
static func notify(_ error: PacketTunnelProviderError, from tunnelProvider: NEPacketTunnelProvider) {
guard let (title, message) = ErrorNotifier.errorMessage(for: error) else { return }
// displayMessage() is deprecated, but there's no better alternative to show the error to the user
- tunnelProvider.displayMessage("\(title): \(message)", completionHandler: { (_) in })
+ tunnelProvider.displayMessage("\(title): \(message)") { _ in }
}
}