Remove unneeded return statement

New clipply lint in rustc nightly "unneeded `return` statement".

Remove it.
This commit is contained in:
Jamil Lambert, PhD 2025-06-09 09:35:44 +01:00
parent 8e60711265
commit 69ce8f448b
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 2 additions and 2 deletions

View File

@ -517,11 +517,11 @@ impl TransactionExtPriv for Transaction {
1
} else if witness_program.is_p2wsh() {
// Treat the last item of the witness as the witnessScript
return witness
witness
.last()
.map(Script::from_bytes)
.map(|s| s.count_sigops())
.unwrap_or(0);
.unwrap_or(0)
} else {
0
}