aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/WireGuardResult.swift
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-12-12 12:28:27 -0600
committerEric Kuck <eric@bluelinelabs.com>2018-12-12 12:28:27 -0600
commitd06cff2a360839c67ce42a695f01bb933ba820c0 (patch)
tree3aa166de8c75947345b9bfb8398ee8b7c6b581c7 /WireGuard/WireGuard/WireGuardResult.swift
parentAdded swiftlint and fixed all errors (and a bunch, but not all, warnings) (diff)
downloadwireguard-apple-d06cff2a360839c67ce42a695f01bb933ba820c0.tar.xz
wireguard-apple-d06cff2a360839c67ce42a695f01bb933ba820c0.zip
Tons more swiftlint warnings fixed. Still a few remaining.
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'WireGuard/WireGuard/WireGuardResult.swift')
-rw-r--r--WireGuard/WireGuard/WireGuardResult.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/WireGuardResult.swift b/WireGuard/WireGuard/WireGuardResult.swift
index 92f73cd8..97be3121 100644
--- a/WireGuard/WireGuard/WireGuardResult.swift
+++ b/WireGuard/WireGuard/WireGuardResult.swift
@@ -6,21 +6,21 @@ enum WireGuardResult<T> {
case failure(_ error: WireGuardAppError)
var value: T? {
- switch (self) {
+ switch self {
case .success(let value): return value
case .failure: return nil
}
}
var error: WireGuardAppError? {
- switch (self) {
+ switch self {
case .success: return nil
case .failure(let error): return error
}
}
var isSuccess: Bool {
- switch (self) {
+ switch self {
case .success: return true
case .failure: return false
}