diff options
author | 2020-12-09 14:35:21 +0100 | |
---|---|---|
committer | 2020-12-09 14:35:21 +0100 | |
commit | d4fd17cd8f5b6d2b756d96a898a8b40d2ba3de9c (patch) | |
tree | 4dc8cbe676c4067bcf321e6eab4f335f4396976c /Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift | |
parent | WireGuardKitGo: get rid of missing -Wno-unused-command-line-argument flag (diff) | |
download | wireguard-apple-d4fd17cd8f5b6d2b756d96a898a8b40d2ba3de9c.tar.xz wireguard-apple-d4fd17cd8f5b6d2b756d96a898a8b40d2ba3de9c.zip |
global: fix remaining swiftlint violations
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift')
-rw-r--r-- | Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift index 5fa255d..2abce6f 100644 --- a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift +++ b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift @@ -266,7 +266,7 @@ extension TunnelEditTableViewController { guard let self = self else { return } let isAllowedIPsChanged = self.tunnelViewModel.updateDNSServersInAllowedIPsIfRequired(oldDNSServers: oldValue, newDNSServers: newValue) if isAllowedIPsChanged { - let section = self.sections.firstIndex { if case .peer(_) = $0 { return true } else { return false } } + let section = self.sections.firstIndex { if case .peer = $0 { return true } else { return false } } if let section = section, let row = self.peerFields.firstIndex(of: .allowedIPs) { self.tableView.reloadRows(at: [IndexPath(row: row, section: section)], with: .none) } |