Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miasma13 committed Dec 22, 2023
1 parent 127d19a commit c2fbced
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 @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit c2fbced

Please sign in to comment.