We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e87e6f commit ed29f12Copy full SHA for ed29f12
src/schnorrsig.rs
@@ -185,11 +185,11 @@ impl KeyPair {
185
tweak.as_c_ptr(),
186
);
187
188
- return if err == 1 {
+ if err == 1 {
189
Ok(())
190
} else {
191
Err(Error::InvalidTweak)
192
- };
+ }
193
}
194
195
@@ -465,11 +465,11 @@ impl<C: Signing> Secp256k1<C> {
465
pubkey.as_c_ptr(),
466
467
468
- return if ret == 1 {
+ if ret == 1 {
469
470
471
Err(Error::InvalidSignature)
472
473
474
475
0 commit comments