Commit 1b768b2
committed
Make tweak_add_assign return statements uniform
We have two `tweak_add_assign` methods (one for keypair and one for
x-only pubkey). Both check the return value from a FFI function call.
We can make both sites uniform to _slightly_ reduce cognitive load when
reading the code.
Use C style code to make it obvious to readers that this is basically C
code.1 parent edafb88 commit 1b768b2
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 639 | + | |
| 640 | + | |
644 | 641 | | |
| 642 | + | |
| 643 | + | |
645 | 644 | | |
646 | 645 | | |
647 | 646 | | |
| |||
846 | 845 | | |
847 | 846 | | |
848 | 847 | | |
849 | | - | |
850 | 848 | | |
851 | 849 | | |
852 | 850 | | |
| |||
0 commit comments