File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Sources/ShopifyAcceleratedCheckouts/Internal/StorefrontAPI
Tests/ShopifyAcceleratedCheckoutsTests/Wallets/ApplePay Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ extension StorefrontAPI {
410410
411411 try validateUserErrors ( payload. userErrors)
412412
413- let cart = try validateCart ( payload. cart, requestName: " cartRemovePersonalData " )
413+ try validateCart ( payload. cart, requestName: " cartRemovePersonalData " )
414414 }
415415
416416 /// Prepare cart for completion
@@ -436,7 +436,7 @@ extension StorefrontAPI {
436436 switch result {
437437 case let . ready( ready) :
438438 try validateUserErrors ( payload. userErrors)
439- let cart = try validateCart ( ready. cart, requestName: " cartPrepareForCompletion " )
439+ try validateCart ( ready. cart, requestName: " cartPrepareForCompletion " )
440440 return ready
441441 case let . throttled( throttled) :
442442 throw GraphQLError . networkError (
@@ -499,6 +499,7 @@ extension StorefrontAPI {
499499 }
500500 }
501501
502+ @discardableResult
502503 private func validateCart( _ cart: Cart ? , requestName _: String ) throws -> Cart {
503504 guard let cart else {
504505 throw GraphQLError . invalidResponse
Original file line number Diff line number Diff line change @@ -144,8 +144,6 @@ final class ApplePayViewModifierTests: XCTestCase {
144144 XCTAssertNotNil ( view, " View should be created successfully without handlers " )
145145 }
146146
147- // MARK: - Combined Modifier Tests
148-
149147 // MARK: - ValidationError Tests
150148
151149 func testValidationErrorInOnError( ) {
You can’t perform that action at this time.
0 commit comments