Ignore unused arguments

v2
Nikita Tokarchuk 4 years ago
parent ee1b0e17d5
commit c019a0ea4b
  1. 2
      mongox/database/database.go

@ -140,7 +140,7 @@ func (d *Database) createAggregateLoad(target interface{}, composed *query.Query
if !ok { if !ok {
continue continue
} }
jsonTag, ok := tag.Lookup("json") jsonTag, _ := tag.Lookup("json")
if jsonTag == "-" { if jsonTag == "-" {
panic(fmt.Errorf("preload private field is impossible")) panic(fmt.Errorf("preload private field is impossible"))
} }

Loading…
Cancel
Save