From b22aeaeb20994620e4dd35bacf9c0bccd7ce54b6 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Tue, 22 Jan 2019 01:44:07 +0530 Subject: Avoid using return in single-line closures Signed-off-by: Roopesh Chander --- .../WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift') 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)! } -- cgit v1.2.3-59-g8ed1b