Skip to content

Commit a01e6e8

Browse files
committed
fix lint, remove clause assitant
1 parent 857124d commit a01e6e8

File tree

2 files changed

+7
-58
lines changed

2 files changed

+7
-58
lines changed

.github/workflows/claude.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/maker/api2.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,14 +1558,7 @@ fn recover_via_hashlock(maker: Arc<Maker>, incoming: IncomingSwapCoinV2) -> Resu
15581558

15591559
let result = {
15601560
// Check if we have the preimage
1561-
if incoming.hash_preimage.is_none() {
1562-
log::warn!(
1563-
"[{}] Preimage not available yet, waiting...",
1564-
maker.config.network_port
1565-
);
1566-
None
1567-
} else {
1568-
let preimage = incoming.hash_preimage.unwrap();
1561+
if let Some(preimage) = incoming.hash_preimage {
15691562
let mut wallet = maker.wallet.write()?;
15701563

15711564
// Attempt to spend via hashlock
@@ -1587,6 +1580,12 @@ fn recover_via_hashlock(maker: Arc<Maker>, incoming: IncomingSwapCoinV2) -> Resu
15871580
Some(Err(MakerError::Wallet(e)))
15881581
}
15891582
}
1583+
} else {
1584+
log::warn!(
1585+
"[{}] Preimage not available yet, waiting...",
1586+
maker.config.network_port
1587+
);
1588+
None
15901589
}
15911590
};
15921591

0 commit comments

Comments
 (0)