Skip to content

Commit

Permalink
Merge pull request #374 from Quasilyte/sloppyLen
Browse files Browse the repository at this point in the history
replace len(x)<=v with len(x)==v
  • Loading branch information
chris-ramon authored Jul 28, 2018
2 parents 8bad5f4 + da5511a commit 657726d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ func reverse(parser *Parser, openKind int, parseFn parseFn, closeKind int, zinte
}
nodes = append(nodes, node)
}
if zinteger && len(nodes) <= 0 {
if zinteger && len(nodes) == 0 {
return nodes, unexpectedEmpty(parser, token.Start, openKind, closeKind)
}
return nodes, nil
Expand Down

0 comments on commit 657726d

Please sign in to comment.