Skip to content

Commit 1e5281a

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

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
@@ -14,11 +14,8 @@ final class CardPresentConfigurationLoader {
1414
stores.dispatch(stripeAction)
1515

1616
let canadaAction = AppSettingsAction.loadCanadaInPersonPaymentsSwitchState(onCompletion: { [weak self] result in
17-
switch result {
18-
case .success(let canadaIPPEnabled):
17+
if case .success(let canadaIPPEnabled) = result {
1918
self?.canadaIPPEnabled = canadaIPPEnabled
20-
default:
21-
break
2219
}
2320
})
2421
stores.dispatch(canadaAction)

0 commit comments

Comments
 (0)