amount: Format verification file

Done as a separate patch so that the diff of the verification code move
was less noisy.
This commit is contained in:
Tobin C. Harding 2024-10-31 09:53:30 +11:00
parent 01f907b7a6
commit cd5d1aba2f
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 5 deletions

View File

@ -112,10 +112,6 @@ fn s_amount_homomorphic_checked() {
assert_eq!(
SignedAmount::from_sat(n1).positive_sub(SignedAmount::from_sat(n2)),
if n1 >= 0 && n2 >= 0 && n1 >= n2 {
Some(SignedAmount::from_sat(n1 - n2))
} else {
None
},
if n1 >= 0 && n2 >= 0 && n1 >= n2 { Some(SignedAmount::from_sat(n1 - n2)) } else { None },
);
}