From f0e44a4b1e1e81e99099fe024f8c832d17b4d730 Mon Sep 17 00:00:00 2001 From: Thomas Espach Date: Tue, 3 Sep 2024 12:37:15 +0100 Subject: [PATCH] Swiftlint Fix --- .../Tab/TabExtensions/SpecialErrorPageTabExtension.swift | 4 ++-- DuckDuckGo/YoutubePlayer/DuckURLSchemeHandler.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DuckDuckGo/Tab/TabExtensions/SpecialErrorPageTabExtension.swift b/DuckDuckGo/Tab/TabExtensions/SpecialErrorPageTabExtension.swift index 6e0007ac3b..013f4f6d90 100644 --- a/DuckDuckGo/Tab/TabExtensions/SpecialErrorPageTabExtension.swift +++ b/DuckDuckGo/Tab/TabExtensions/SpecialErrorPageTabExtension.swift @@ -182,7 +182,7 @@ extension SpecialErrorPageTabExtension: NavigationResponder { shouldBypassSSLError = false return .credential(credential) } - + @MainActor func generateErrorPageURL(_ url: URL) -> URL? { guard let urlString = url.absoluteString.data(using: .utf8) else { @@ -208,7 +208,7 @@ extension SpecialErrorPageTabExtension: SpecialErrorPageUserScriptDelegate { func visitSite() { if errorPageType == .phishing { if let url = webView?.url { - //PixelKit.fire(PhishingDetectionPixels.visitSite) + // PixelKit.fire(PhishingDetectionPixels.visitSite) phishingURLExemptions.insert(url) self.phishingStateManager.didBypassError = true self.phishingStateManager.isShowingPhishingError = false diff --git a/DuckDuckGo/YoutubePlayer/DuckURLSchemeHandler.swift b/DuckDuckGo/YoutubePlayer/DuckURLSchemeHandler.swift index b9c15df7c2..e169c255e5 100644 --- a/DuckDuckGo/YoutubePlayer/DuckURLSchemeHandler.swift +++ b/DuckDuckGo/YoutubePlayer/DuckURLSchemeHandler.swift @@ -236,7 +236,7 @@ extension URL { var isReleaseNotesScheme: Bool { return isDuckURLScheme && host == "release-notes" } - + var isErrorPage: Bool { isDuckURLScheme && self.host == "error" }