aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-22 05:30:35 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-22 05:30:35 +0100
commitd36e7e27ffab1c0d22967185d64442226689906e (patch)
tree8f34a525b6baea40c9fe35f2606bda938e4839ea /WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
parentDo not crash if we can't get socket.fileDescriptor (diff)
downloadwireguard-apple-d36e7e27ffab1c0d22967185d64442226689906e.tar.xz
wireguard-apple-d36e7e27ffab1c0d22967185d64442226689906e.zip
Clean up trailing whitespace
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
index ad3e2eb..a0f1855 100644
--- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
@@ -14,7 +14,7 @@ class TunnelEditTableViewController: UITableViewController {
case peer(_ peer: TunnelViewModel.PeerData)
case addPeer
case onDemand
-
+
static func == (lhs: Section, rhs: Section) -> Bool {
switch (lhs, rhs) {
case (.interface, .interface),
@@ -360,7 +360,7 @@ extension TunnelEditTableViewController {
let firstInterfaceSection = sections.firstIndex(where: { $0 == .interface })!
let interfaceSubSection = interfaceFieldsBySection.firstIndex(where: { $0.contains(.dns) })!
let dnsRow = interfaceFieldsBySection[interfaceSubSection].firstIndex(where: { $0 == .dns })!
-
+
cell.onValueBeingEdited = { [weak self, weak peerData] value in
guard let self = self, let peerData = peerData else { return }
@@ -373,7 +373,7 @@ extension TunnelEditTableViewController {
self.tableView.deleteRows(at: [IndexPath(row: row, section: indexPath.section)], with: .fade)
}
}
-
+
tableView.reloadRows(at: [IndexPath(row: dnsRow, section: firstInterfaceSection + interfaceSubSection)], with: .none)
}
} else {