Skip to content

Commit caee3eb

Browse files
kokejoshheald
andauthored
Update WooCommerce/Classes/Tools/In-Person Payments/CardPresentConfigurationLoader.swift
Co-authored-by: Josh Heald <[email protected]>
1 parent 8ba4420 commit caee3eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WooCommerce/Classes/Tools/In-Person Payments/CardPresentConfigurationLoader.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ final class CardPresentConfigurationLoader {
77

88
init(stores: StoresManager = ServiceLocator.stores) {
99
let stripeAction = AppSettingsAction.loadStripeInPersonPaymentsSwitchState(onCompletion: { [weak self] result in
10-
switch result {
11-
case .success(let stripeGatewayIPPEnabled):
10+
if case .success(let stripeGatewayIPPEnabled) = result {
1211
self?.stripeGatewayIPPEnabled = stripeGatewayIPPEnabled
13-
default:
14-
break
1512
}
1613
})
1714
stores.dispatch(stripeAction)

0 commit comments

Comments
 (0)