forked from TrueCloudLab/distribution
Removed an unnecessary error check.
This commit is contained in:
parent
cf8afcf647
commit
6a2aee3043
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@ func (r *Registry) GetRemoteHistory(imgID, registry string, token []string) ([]s
|
|||
return nil, err
|
||||
}
|
||||
req.Header.Set("Authorization", "Token "+strings.Join(token, ", "))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
r.setUserAgent(req)
|
||||
res, err := r.client.Do(req)
|
||||
if err != nil || res.StatusCode != 200 {
|
||||
if res != nil {
|
||||
|
|
Loading…
Reference in a new issue