Skip to content

Commit

Permalink
fix: tag handling #80
Browse files Browse the repository at this point in the history
  • Loading branch information
54m committed Oct 12, 2022
1 parent 9e6f198 commit 6752008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/structGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ func (g *structGenerator) parseIndexesField(tags *structtag.Tags) error {
tag, err := validateFirestoreTag(tags)
if err != nil {
return xerrors.Errorf("firestore tag(%s) is invalid: %w", tag, err)
} else if tag != "" {
fieldInfo.FsTag = tag
}

fieldInfo.FsTag = tag
g.param.FieldInfoForIndexes = fieldInfo

return nil
Expand Down

0 comments on commit 6752008

Please sign in to comment.