Skip to content

Commit

Permalink
Remove unneeded return statement
Browse files Browse the repository at this point in the history
Clippy emits:

  warning: unneeded `return` statement

As suggested, remove unneeded return statement.
  • Loading branch information
tcharding committed May 16, 2024
1 parent f9907b0 commit e361cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoind-tests/tests/test_desc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ pub fn test_desc_satisfy(
// Assert that the confirmations are > 0.
let num_conf = cl.get_transaction(&txid, None).unwrap().info.confirmations;
assert!(num_conf > 0);
return Ok(tx.input[0].witness.clone());
Ok(tx.input[0].witness.clone())
}

// Find all secret corresponding to the known public keys in ms
Expand Down

0 comments on commit e361cfc

Please sign in to comment.