From c2fbcedf08dc3de45491534d8717d3e41fa1c51f Mon Sep 17 00:00:00 2001 From: Michal Smaga Date: Fri, 22 Dec 2023 18:29:13 +0100 Subject: [PATCH] Fix linting errors --- DuckDuckGo/Tab/UserScripts/SubscriptionPagesUserScript.swift | 2 +- .../SubscriptionUI/DebugMenu/SubscriptionDebugMenu.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DuckDuckGo/Tab/UserScripts/SubscriptionPagesUserScript.swift b/DuckDuckGo/Tab/UserScripts/SubscriptionPagesUserScript.swift index 09ae0e33ec..60d2b5ad1f 100644 --- a/DuckDuckGo/Tab/UserScripts/SubscriptionPagesUserScript.swift +++ b/DuckDuckGo/Tab/UserScripts/SubscriptionPagesUserScript.swift @@ -178,7 +178,7 @@ final class SubscriptionPagesUseSubscriptionFeature: Subfeature { #endif } - // swiftlint:disable:next cyclomatic_complexity function_body_length + // swiftlint:disable:next function_body_length func subscriptionSelected(params: Any, original: WKScriptMessage) async throws -> Encodable? { struct SubscriptionSelection: Decodable { let id: String diff --git a/LocalPackages/SubscriptionUI/Sources/SubscriptionUI/DebugMenu/SubscriptionDebugMenu.swift b/LocalPackages/SubscriptionUI/Sources/SubscriptionUI/DebugMenu/SubscriptionDebugMenu.swift index 9a4f1e563a..7c4dbf2ed8 100644 --- a/LocalPackages/SubscriptionUI/Sources/SubscriptionUI/DebugMenu/SubscriptionDebugMenu.swift +++ b/LocalPackages/SubscriptionUI/Sources/SubscriptionUI/DebugMenu/SubscriptionDebugMenu.swift @@ -147,7 +147,7 @@ public final class SubscriptionDebugMenu: NSMenuItem { @objc func testError1(_ sender: Any?) { Task { @MainActor in - let alert = NSAlert.init() + let alert = NSAlert() alert.messageText = "Something Went Wrong" alert.informativeText = "The App Store was not able to process your purchase. Please try again later." alert.addButton(withTitle: "OK") @@ -158,7 +158,7 @@ public final class SubscriptionDebugMenu: NSMenuItem { @objc func testError2(_ sender: Any?) { Task { @MainActor in - let alert = NSAlert.init() + let alert = NSAlert() alert.messageText = "Subscription Not Found" alert.informativeText = "The subscription associated with this Apple ID is no longer active." alert.addButton(withTitle: "View Plans")