From aabff429bce260f9edd5f04a9787ef0c30ab86e1 Mon Sep 17 00:00:00 2001 From: patrini32 <171664803+patrini32@users.noreply.github.com> Date: Wed, 5 Jun 2024 21:17:45 +0300 Subject: [PATCH] fix formatting: delete whitespaces --- swap/src/cli/cancel_and_refund.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/cli/cancel_and_refund.rs b/swap/src/cli/cancel_and_refund.rs index be7a6100..6a596985 100644 --- a/swap/src/cli/cancel_and_refund.rs +++ b/swap/src/cli/cancel_and_refund.rs @@ -124,13 +124,13 @@ pub async fn refund( Err(error) => { if let Ok(error_code) = parse_rpc_error_code(&error) { if error_code == i64::from(RpcErrorCode::RpcVerifyError) { - // Check if timelock hasn't expired. + // Check if timelock hasn't expired. if let ExpiredTimelocks::None { .. } = state6.expired_timelock(bitcoin_wallet.as_ref()).await? { bail!(error); // Timelock expired and network rejected refund, so we are out-of-sync with Alice. (I assume that there's no other states under these conditions, am I right?) - } else { + } else { let state = BobState::BtcPunished { tx_lock_id: state6.tx_lock_id(), }; // Set state to punished.