Skip to content

Commit 1b406e0

Browse files
committed
Remove unnecessary await
1 parent 93aa91f commit 1b406e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ShopifyAcceleratedCheckouts/Wallets/ApplePay/ApplePayViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ApplePayViewController: PayController, ObservableObject {
135135
throw validationError
136136
} catch {
137137
if let checkoutError = error as? CheckoutError {
138-
await checkoutDelegate?.checkoutDidFail(error: checkoutError)
138+
checkoutDelegate?.checkoutDidFail(error: checkoutError)
139139
}
140140
try? await authorizationDelegate.transition(to: .terminalError(error: error))
141141
throw error
@@ -217,7 +217,7 @@ extension ApplePayViewController: CheckoutDelegate {
217217
}
218218
}
219219

220-
@MainActor func shouldRecoverFromError(error: CheckoutError) -> Bool {
220+
func shouldRecoverFromError(error: CheckoutError) -> Bool {
221221
return checkoutDelegate?.shouldRecoverFromError(error: error) ?? false
222222
}
223223

0 commit comments

Comments
 (0)