Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DrunkRandomWalker committed Oct 25, 2023
1 parent 83320ec commit 4a6cadd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/injective-math/src/fp_decimal/exp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,6 @@ impl FPDecimal {
}
}

if let Some(value) = common_const_checks(self, exponent) {
return value;
}

fn common_checks(exponent: FPDecimal) -> Option<FPDecimal> {
if FPDecimal::TWO.ln() == exponent {
return Some(FPDecimal::TWO);
Expand All @@ -688,6 +684,10 @@ impl FPDecimal {

type BaseCheckFunction<'a> = (&'a dyn Fn(FPDecimal) -> Option<FPDecimal>, FPDecimal);

if let Some(value) = common_const_checks(self, exponent) {
return value;
}

match common_checks(exponent) {
Some(value) => value,
None => {
Expand Down

0 comments on commit 4a6cadd

Please sign in to comment.