Skip to content

Commit

Permalink
Swiftlint Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
not-a-rootkit committed Sep 3, 2024
1 parent 60138d3 commit f0e44a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/YoutubePlayer/DuckURLSchemeHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ extension URL {
var isReleaseNotesScheme: Bool {
return isDuckURLScheme && host == "release-notes"
}

var isErrorPage: Bool {
isDuckURLScheme && self.host == "error"
}
Expand Down

0 comments on commit f0e44a4

Please sign in to comment.