Skip to content

Commit 4da2727

Browse files
committed
Revert additional uneeded changes from the first commit
1 parent 6542fcb commit 4da2727

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

WooCommerce/Classes/ViewModels/CardPresentPayments/PaymentCaptureOrchestrator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ final class PaymentCaptureOrchestrator {
6060
}
6161
},
6262
onCompletion: { [weak self] result in
63-
onProcessingMessage()
6463
self?.allowPassPresentation()
64+
onProcessingMessage()
6565
self?.completePaymentIntentCapture(
6666
order: order,
6767
captureResult: result,

Yosemite/Yosemite/Stores/CardPresentPaymentStore.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,15 @@ private extension CardPresentPaymentStore {
185185

186186
cardReaderService.cancelPaymentIntent()
187187
.subscribe(Subscribers.Sink(receiveCompletion: { value in
188-
switch value {
189-
case .failure(let error):
190-
onCompletion?(.failure(error))
191-
case .finished:
192-
break
193-
}
194-
}, receiveValue: {
195-
onCompletion?(.success(()))
196-
})
197-
)
188+
switch value {
189+
case .failure(let error):
190+
onCompletion?(.failure(error))
191+
case .finished:
192+
break
193+
}
194+
}, receiveValue: {
195+
onCompletion?(.success(()))
196+
}))
198197
}
199198

200199
func checkForCardReaderUpdate(onCompletion: @escaping (Result<CardReaderSoftwareUpdate?, Error>) -> Void) {
@@ -259,6 +258,7 @@ private extension CardPresentPaymentStore {
259258
}
260259
}
261260

261+
262262
/// Implementation of the CardReaderNetworkingAdapter
263263
/// that fetches a token using WCPayRemote
264264
private final class WCPayTokenProvider: CardReaderConfigProvider {

0 commit comments

Comments
 (0)