Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solovev committed Jul 5, 2023
1 parent 5615713 commit 3ecd51f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions OmiseSDK/CreditCardFormViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import UIKit
import os.log

// swiftlint:disable line_length
public protocol CreditCardFormViewControllerDelegate: AnyObject {
/// Delegate method for receiving token data when card tokenization succeeds.
/// - parameter token: `OmiseToken` instance created from supplied credit card data.
Expand Down Expand Up @@ -57,22 +58,19 @@ public protocol OMSCreditCardFormViewControllerDelegate: AnyObject {

@objc optional func creditCardFormViewControllerDidCancel(_ controller: CreditCardFormViewController)

// swiftlint:disable line_length
@available(*, unavailable,
message: "Implement the new -[OMSCreditCardFormViewControllerDelegate creditCardFormViewController:didSucceedWithToken:] instead",
renamed: "creditCardFormViewController(_:didSucceedWithToken:)")
// swiftlint:enable line_length
// swiftlint:disable:next attributes
@objc func creditCardForm(_ controller: CreditCardFormViewController, didSucceedWithToken token: __OmiseToken)

// swiftlint:disable line_length
@available(*, unavailable,
message: "Implement the new -[OMSCreditCardFormViewControllerDelegate creditCardFormViewController:didFailWithError:] instead",
renamed: "creditCardFormViewController(_:didFailWithError:)")
// swiftlint:enable line_length
// swiftlint:disable:next attributes
@objc func creditCardForm(_ controller: CreditCardFormViewController, didFailWithError error: NSError)
}
// swiftlint:enable line_length

@available(*, deprecated, renamed: "CreditCardFormViewController")
public typealias CreditCardFormController = CreditCardFormViewController
Expand Down

0 comments on commit 3ecd51f

Please sign in to comment.