Skip to content

Commit

Permalink
chore: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Jan 30, 2025
1 parent d0a0a3a commit 9b7e19c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions primitives/runtime/src/multi/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,19 @@ impl VerifyMut for MultiSignature {
match self {
Self::Ed25519(sig) => {
let who = who.into();
sig.verify(msg, &who).then(|| signer.check(who)).unwrap_or(false)
if sig.verify(msg, &who) {
signer.check(who)
} else {
false
}
},
Self::Sr25519(sig) => {
let who = who.into();
sig.verify(msg, &who).then(|| signer.check(who)).unwrap_or(false)
if sig.verify(msg, &who) {
signer.check(who)
} else {
false
}
},
Self::Ecdsa(sig) => {
let m = sp_io::hashing::blake2_256(msg.get());
Expand Down

0 comments on commit 9b7e19c

Please sign in to comment.