Ignore unused arguments

This commit is contained in:
Nikita Tokarchuk
2020-07-13 02:44:50 +02:00
parent ee1b0e17d5
commit c019a0ea4b
+1 -1
View File
@@ -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"))
} }