diff --git a/packages/injective-math/src/fp_decimal/exp.rs b/packages/injective-math/src/fp_decimal/exp.rs index 4d343b60..9e2dfd2e 100644 --- a/packages/injective-math/src/fp_decimal/exp.rs +++ b/packages/injective-math/src/fp_decimal/exp.rs @@ -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 = [