Skip to content

Commit 7cd4453

Browse files
authored
Revert empty line formatting
1 parent 344dbff commit 7cd4453

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
9898
super.init()
9999
authorizationController?.delegate = self
100100
}
101-
101+
102102
/// Initializes this class.
103103
/// @note This may return nil if the request is invalid e.g. the user is restricted by parental controls, or can't make payments on any of the request's supported networks
104104
/// - Parameters:
@@ -127,7 +127,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
127127
/// while presented.
128128
/// :nodoc:
129129
@_spi(STP) public weak var applePayContextObjCBridge: NSObject?
130-
130+
131131
private var presentationWindow: UIWindow?
132132

133133
/// Presents the Apple Pay sheet from the key window, starting the payment process.
@@ -209,7 +209,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
209209
let window = viewController.viewIfLoaded?.window
210210
presentApplePay(from: window, completion: completion)
211211
}
212-
212+
213213
/// The API Client to use to make requests.
214214
/// Defaults to `STPAPIClient.shared`
215215
public var apiClient: STPAPIClient = STPAPIClient.shared
@@ -307,7 +307,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
307307
// Some observations (on iOS 12 simulator):
308308
// - The docs say localizedDescription can be shown in the Apple Pay sheet, but I haven't seen this.
309309
// - If you call the completion block w/ a status of .failure and an error, the user is prompted to try again.
310-
310+
311311
_completePayment(with: payment) { status, error in
312312
let errors = [STPAPIClient.pkPaymentError(forStripeError: error)].compactMap({ $0 })
313313
let result = PKPaymentAuthorizationResult(status: status, errors: errors)
@@ -456,7 +456,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
456456
}
457457
return
458458
}
459-
459+
460460
switch setupIntent.status {
461461
case .requiresConfirmation, .requiresAction, .requiresPaymentMethod:
462462
// 4a. Confirm the SetupIntent
@@ -478,7 +478,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
478478
}
479479
return
480480
}
481-
481+
482482
handleFinalState(.success, nil)
483483
}
484484
case .succeeded:
@@ -508,7 +508,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
508508
}
509509
return
510510
}
511-
511+
512512
if paymentIntent.confirmationMethod == .automatic
513513
&& (paymentIntent.status == .requiresPaymentMethod
514514
|| paymentIntent.status == .requiresConfirmation)
@@ -582,9 +582,9 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
582582
assertionFailure("An STPApplePayContext's delegate must conform to ApplePayContextDelegate or STPApplePayContextDelegate.")
583583
}
584584
}
585-
585+
586586
}
587-
587+
588588
static func makeUnknownError(message: String) -> NSError {
589589
let userInfo = [
590590
NSLocalizedDescriptionKey: NSError.stp_unexpectedErrorMessage(),
@@ -597,7 +597,7 @@ public class STPApplePayContext: NSObject, PKPaymentAuthorizationControllerDeleg
597597

598598
/// This is STPPaymentHandlerErrorCode.intentStatusErrorCode.rawValue, which we don't want to vend from this framework.
599599
fileprivate static let STPPaymentHandlerErrorCodeIntentStatusErrorCode = 3
600-
600+
601601
enum PaymentState {
602602
case notStarted
603603
case pending

0 commit comments

Comments
 (0)