Skip to content

Commit 657726d

Browse files
authored
Merge pull request #374 from Quasilyte/sloppyLen
replace len(x)<=v with len(x)==v
2 parents 8bad5f4 + da5511a commit 657726d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ func reverse(parser *Parser, openKind int, parseFn parseFn, closeKind int, zinte
16001600
}
16011601
nodes = append(nodes, node)
16021602
}
1603-
if zinteger && len(nodes) <= 0 {
1603+
if zinteger && len(nodes) == 0 {
16041604
return nodes, unexpectedEmpty(parser, token.Start, openKind, closeKind)
16051605
}
16061606
return nodes, nil

0 commit comments

Comments
 (0)