diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-22 01:44:07 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-22 02:01:32 +0530 |
commit | b22aeaeb20994620e4dd35bacf9c0bccd7ce54b6 (patch) | |
tree | 462c906daba4d417e527c756085b42fa3b07b43f /WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | |
parent | macOS: Make color theme use a dict (diff) | |
download | wireguard-apple-b22aeaeb20994620e4dd35bacf9c0bccd7ce54b6.tar.xz wireguard-apple-b22aeaeb20994620e4dd35bacf9c0bccd7ce54b6.zip |
Avoid using return in single-line closures
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index cdc6d44..ef51e19 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -130,9 +130,7 @@ class TunnelEditViewController: NSViewController { selectedActivateOnDemandOption = .none } - onDemandRow.valueOptions = activateOnDemandOptions.map { - return TunnelViewModel.activateOnDemandOptionText(for: $0) - } + onDemandRow.valueOptions = activateOnDemandOptions.map { TunnelViewModel.activateOnDemandOptionText(for: $0) } onDemandRow.selectedOptionIndex = activateOnDemandOptions.firstIndex(of: selectedActivateOnDemandOption)! } |