Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KnowWhoami committed Nov 17, 2024
1 parent d2d417a commit ec0d12e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wallet/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,14 +621,15 @@ impl Wallet {
.as_ref()
.unwrap_or(&ScriptBuf::default()),
)
.map_or(false, |sc| sc.other_privkey.is_some())
.is_some_and(|sc| sc.other_privkey.is_some())
|| self
.find_outgoing_swapcoin(
utxo.witness_script
.as_ref()
.unwrap_or(&ScriptBuf::default()),
)
.map_or(false, |sc| sc.hash_preimage.is_some());
.is_some_and(|sc| sc.hash_preimage.is_some());

if found {
return Ok(Some(UTXOSpendInfo::SwapCoin {
multisig_redeemscript: utxo
Expand Down

0 comments on commit ec0d12e

Please sign in to comment.