Skip to content

Commit

Permalink
style: no need to check len(value) (eatonphil#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangao authored Feb 10, 2021
1 parent bfaada0 commit 17d408a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,6 @@ func lexIdentifier(source string, ic cursor) (*Token, cursor, bool) {
break
}

if len(value) == 0 {
return nil, ic, false
}

return &Token{
// Unquoted identifiers are case-insensitive
Value: strings.ToLower(string(value)),
Expand Down

0 comments on commit 17d408a

Please sign in to comment.