Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 18, 2024
1 parent a023a30 commit d7e0dc2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ async fn process_payment(pending_payment: PendingPayment) {

mutate_state(|state| {
match result {
Ok(Ok(block_index)) => match reason {
PendingPaymentReason::ReferralReward => {
Ok(Ok(block_index)) => {
if matches!(reason, PendingPaymentReason::ReferralReward) {
inform_referrer(&pending_payment, block_index, state);
}
_ => {}
},
}
Ok(Err(_)) => {}
Err(_) => {
state.data.pending_payments_queue.push(pending_payment);
Expand Down

0 comments on commit d7e0dc2

Please sign in to comment.