Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DrunkenRandomWalker committed Nov 6, 2023
1 parent 733f1bb commit 787816c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/injective-math/src/fp_decimal/exp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,8 @@ impl FPDecimal {

fn check_log_2(x: &FPDecimal, exponent: &FPDecimal) -> bool {
match x.log2() {
Some(v) => {
if v == *exponent {
return true;
} else {
return false;
}
}
None => {
return false;
}
Some(v) => v == *exponent,
None => false,
}
}
let special_checks = [
Expand Down

0 comments on commit 787816c

Please sign in to comment.