fmt: remove redundant parenthesis in the complex infix expr (#17873)

This commit is contained in:
yuyi 2023-04-04 18:47:48 +08:00 committed by GitHub
parent 8452644ec3
commit 467a1b4435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 141 additions and 117 deletions

View file

@ -163,7 +163,7 @@ fn parser(s string) (ParserState, PrepNumber) {
}
// read mantissa decimals
if (i < s.len) && (s[i] == `.`) {
if i < s.len && s[i] == `.` {
i++
for i < s.len && s[i].is_digit() {
if digx < strconv.digits {
@ -177,7 +177,7 @@ fn parser(s string) (ParserState, PrepNumber) {
}
// read exponent
if (i < s.len) && ((s[i] == `e`) || (s[i] == `E`)) {
if i < s.len && (s[i] == `e` || s[i] == `E`) {
i++
if i < s.len {
// esponent sign