Fix another linting error

This commit is contained in:
Gusted 2022-08-22 19:02:01 +02:00
parent 1bc8e67e9c
commit f1e61af242
No known key found for this signature in database
GPG Key ID: FD821B732837125F
1 changed files with 5 additions and 2 deletions

View File

@ -73,9 +73,12 @@ func (t Ticket) MarshalJSON() ([]byte, error) {
} }
func JSONLoadTicket(val *fastjson.Value, t *Ticket) error { func JSONLoadTicket(val *fastjson.Value, t *Ticket) error {
ap.OnObject(&t.Object, func(o *ap.Object) error { if err := ap.OnObject(&t.Object, func(o *ap.Object) error {
return ap.JSONLoadObject(val, o) return ap.JSONLoadObject(val, o)
}) }); err != nil {
return err
}
t.Dependants = ap.JSONGetItems(val, "dependants") t.Dependants = ap.JSONGetItems(val, "dependants")
t.Dependencies = ap.JSONGetItems(val, "dependencies") t.Dependencies = ap.JSONGetItems(val, "dependencies")
t.IsResolved = ap.JSONGetBoolean(val, "isResolved") t.IsResolved = ap.JSONGetBoolean(val, "isResolved")