Fix indentation in outbound payment mark_abandoned
authorValentine Wallace <vwallace@protonmail.com>
Fri, 3 Feb 2023 16:53:44 +0000 (11:53 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 15 Feb 2023 02:29:34 +0000 (21:29 -0500)
lightning/src/ln/outbound_payment.rs

index 31ba9cb371f9c2c3036a5f4779cc9f24c429467e..c7151def6d3b0605deec5381af57a3ca863cd48c 100644 (file)
@@ -163,13 +163,13 @@ impl PendingOutboundPayment {
                let our_payment_hash;
                core::mem::swap(&mut session_privs, match self {
                        PendingOutboundPayment::Legacy { .. } |
-                               PendingOutboundPayment::Fulfilled { .. } =>
+                       PendingOutboundPayment::Fulfilled { .. } =>
                                return Err(()),
-                               PendingOutboundPayment::Retryable { session_privs, payment_hash, .. } |
-                                       PendingOutboundPayment::Abandoned { session_privs, payment_hash, .. } => {
-                                               our_payment_hash = *payment_hash;
-                                               session_privs
-                                       },
+                       PendingOutboundPayment::Retryable { session_privs, payment_hash, .. } |
+                       PendingOutboundPayment::Abandoned { session_privs, payment_hash, .. } => {
+                               our_payment_hash = *payment_hash;
+                               session_privs
+                       },
                });
                *self = PendingOutboundPayment::Abandoned { session_privs, payment_hash: our_payment_hash };
                Ok(())