Skip to content

Commit

Permalink
change as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
XenoAmess committed Aug 25, 2020
1 parent d01b5b8 commit 3f10f12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -976,9 +976,8 @@ public BigFraction pow(final int exponent) {
if (isZero()) {
if (exponent < 0) {
throw new FractionException(FractionException.ERROR_ZERO_DENOMINATOR);
} else {
return ZERO;
}
return ZERO;
}
if (exponent > 0) {
return new BigFraction(ArithmeticUtils.pow(this.numerator, exponent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,8 @@ public Fraction pow(final int exponent) {
if (isZero()) {
if (exponent < 0) {
throw new FractionException(FractionException.ERROR_ZERO_DENOMINATOR);
} else {
return ZERO;
}
return ZERO;
}
if (exponent > 0) {
return new Fraction(ArithmeticUtils.pow(this.numerator, exponent),
Expand Down

0 comments on commit 3f10f12

Please sign in to comment.