Skip to content

Commit a1c3981

Browse files
committed
fix: remove unnecessary check for mantissa digits in decimal validation
1 parent b2e697e commit a1c3981

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

decimal.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ func validateDecimalText(text string) error {
385385
if i != length {
386386
return fmt.Errorf("decimal literal has trailing characters")
387387
}
388-
if digits == 0 && !seenDot {
389-
return fmt.Errorf("decimal literal missing mantissa digits")
390-
}
391388
return nil
392389
default:
393390
return fmt.Errorf("decimal literal contains invalid character %q", ch)

0 commit comments

Comments
 (0)