Skip to content

Commit

Permalink
remove reduntant check
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat-biradar authored and wcn3 committed Mar 24, 2021
1 parent 8ad7a25 commit 2c2d728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/tokenizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func header(tok *token) bool {
// Sometimes an internal reference like "(ii)" from NPL-1.02.txt
// ends up at the beginning of a line. In that case, it's
// not actually a header.
if e == ')' && !strings.HasSuffix(tok.Previous, "(") {
if !strings.HasSuffix(tok.Previous, "(") {
return true
}
}
Expand Down

0 comments on commit 2c2d728

Please sign in to comment.