Skip to content

Commit

Permalink
Edit second vulnerable test-case
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcrosta committed Mar 14, 2024
1 parent da30644 commit a55b319
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ impl UnusedReturnEnum {
let absolute_difference = balance1.abs_diff(balance2);
let sum = balance1 + balance2;

let _ignore = 100u128
.checked_mul(absolute_difference / sum)
.ok_or(Error::Overflow)?;

match 100u128.checked_mul(absolute_difference / sum) {
Some(result) => result,
None => panic!("Overflow"),
Expand Down

0 comments on commit a55b319

Please sign in to comment.