Skip to content

Commit

Permalink
Merge branch 'master' into issue/401
Browse files Browse the repository at this point in the history
  • Loading branch information
paupino committed Jul 21, 2021
2 parents bb347ca + e8727e1 commit cfcb502
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/maths.rs
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 cfcb502

Please sign in to comment.