Skip to content

Commit

Permalink
Use zero-length check
Browse files Browse the repository at this point in the history
  • Loading branch information
jtibshirani committed Nov 13, 2023
1 parent ecc1258 commit b28a06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/ctags.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ctagsAddSymbolsParserMap(todo []*zoekt.Document, languageMap ctags.Language
var tagsToSections tagsToSections

for _, doc := range todo {
if doc.Content == nil || doc.Symbols != nil {
if len(doc.Content) == 0 || doc.Symbols != nil {
continue
}

Expand Down

0 comments on commit b28a06c

Please sign in to comment.