locking/api: only decode lock list if status is OK
This commit is contained in:
parent
b92cac52f5
commit
ebdeaa1a57
@ -183,7 +183,10 @@ func (c *lockClient) Search(remote string, searchReq *lockSearchRequest) (*lockL
|
||||
}
|
||||
|
||||
locks := &lockList{}
|
||||
if res.StatusCode == http.StatusOK {
|
||||
err = lfsapi.DecodeJSON(res, locks)
|
||||
}
|
||||
|
||||
return locks, res, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user