From 9738e8963d4a784b43c955d722b6119cbd92de3d Mon Sep 17 00:00:00 2001 From: Kofi Gumbs Date: Sat, 4 Jun 2022 18:01:22 -0400 Subject: [PATCH] Fix indentation --- Sources/Runtime/Tab+WKNavigationDelegate.swift | 18 +++++++++--------- Sources/Runtime/WKWebView.swift | 4 ++-- Sources/Shared/Program.swift | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Sources/Runtime/Tab+WKNavigationDelegate.swift b/Sources/Runtime/Tab+WKNavigationDelegate.swift index d816cbb..8833fad 100644 --- a/Sources/Runtime/Tab+WKNavigationDelegate.swift +++ b/Sources/Runtime/Tab+WKNavigationDelegate.swift @@ -7,20 +7,20 @@ extension Tab: WKNavigationDelegate { func webView(_: WKWebView, decidePolicyFor: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) -> () { switch decidePolicyFor.targetFrame { - case .some(_): - decisionHandler(.allow) - case .none: - decisionHandler(.cancel) - _ = decidePolicyFor.request.url.map(Browser.global.open) + case .some(_): + decisionHandler(.allow) + case .none: + decisionHandler(.cancel) + _ = decidePolicyFor.request.url.map(Browser.global.open) } } func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { switch challenge.protectionSpace.authenticationMethod { - case NSURLAuthenticationMethodHTTPBasic: - completionHandler(.useCredential, URLCredential(user: self.basicAuthUser, password: self.basicAuthPassword, persistence: .forSession)) - default: - completionHandler(.performDefaultHandling, nil) + case NSURLAuthenticationMethodHTTPBasic: + completionHandler(.useCredential, URLCredential(user: self.basicAuthUser, password: self.basicAuthPassword, persistence: .forSession)) + default: + completionHandler(.performDefaultHandling, nil) } } } diff --git a/Sources/Runtime/WKWebView.swift b/Sources/Runtime/WKWebView.swift index a6ddf6f..ae864d1 100644 --- a/Sources/Runtime/WKWebView.swift +++ b/Sources/Runtime/WKWebView.swift @@ -12,8 +12,8 @@ extension WKWebView { func setDefaultZoom() { guard let defaultKey = self.defaultKey() else { return } switch UserDefaults.standard.double(forKey: defaultKey) { - case 0: return - case let zoom: setZoom(zoom.description) + case 0: return + case let zoom: setZoom(zoom.description) } } diff --git a/Sources/Shared/Program.swift b/Sources/Shared/Program.swift index c7e3a93..ae1c40e 100644 --- a/Sources/Shared/Program.swift +++ b/Sources/Shared/Program.swift @@ -5,10 +5,10 @@ public class Program: NSObject { static let title: String = { switch Bundle.multi?.version { - case .none: - return "Multi" - case .some(let version): - return "Multi — \(version)" + case .none: + return "Multi" + case .some(let version): + return "Multi — \(version)" } }()