Skip to content

Commit

Permalink
Fixes linting warning for log10 logic
Browse files Browse the repository at this point in the history
  • Loading branch information
paupino committed Jul 21, 2021
1 parent 2596e62 commit e8727e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/maths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,7 @@ impl MathematicalOps for Decimal {
return Some((result - self.scale()).into());
}

if let Some(result) = self.checked_ln() {
Some(LN10_INVERSE * result)
} else {
None
}
self.checked_ln().map(|result| LN10_INVERSE * result)
}

fn erf(&self) -> Decimal {
Expand Down

0 comments on commit e8727e1

Please sign in to comment.