Skip to content

Commit

Permalink
Clean up code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshropshire committed Dec 6, 2024
1 parent b141c34 commit 9beadea
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ class CardClient internal constructor(
is ConfirmPaymentSourceResult.Success -> {
if (response.payerActionHref == null) {
analytics.notifyApproveOrderSucceeded(response.orderId)
val result: CardResult.ApproveOrder = response.run {
CardResult.ApproveOrder.Success(
orderId = orderId,
status = status?.name
)
val result = response.run {
CardResult.ApproveOrder.Success(orderId, status = status?.name)
}
callback.onApproveOrderResult(result)
} else {
Expand Down

0 comments on commit 9beadea

Please sign in to comment.