No need to nest.
diff --git a/src/main/java/org/apache/commons/text/numbers/ParsedDecimal.java b/src/main/java/org/apache/commons/text/numbers/ParsedDecimal.java
index 953eb76..a7d251b 100644
--- a/src/main/java/org/apache/commons/text/numbers/ParsedDecimal.java
+++ b/src/main/java/org/apache/commons/text/numbers/ParsedDecimal.java
@@ -572,11 +572,10 @@
// value did not carry over; done adding
digits[i] = d;
break;
- } else {
- // value carried over; the current position is 0
- // which we will ignore by shortening the digit count
- ++removedDigits;
}
+ // value carried over; the current position is 0
+ // which we will ignore by shortening the digit count
+ ++removedDigits;
}
if (i < 0) {