From 8e7bfb15ed5c2a4537c18ef512a87d7a73ac9253 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 10 Nov 2018 12:25:17 +0530 Subject: TunnelsManager: startDeactivation() need not take a completion handler Because the completion handler pattern doesn't fit in this case. Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift') diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift index 76a38e3..5209b3a 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift @@ -159,9 +159,7 @@ extension TunnelDetailTableViewController { } } } else { - s.tunnelsManager.startDeactivation(of: s.tunnel) { error in - print("Error while deactivating: \(String(describing: error))") - } + s.tunnelsManager.startDeactivation(of: s.tunnel) } } return cell -- cgit v1.2.3-59-g8ed1b