Removed an unnecessary error check.

This commit is contained in:
Nan Monnand Deng 2013-06-28 18:45:45 -04:00
parent cf8afcf647
commit 6a2aee3043

View file

@ -145,9 +145,7 @@ func (r *Registry) GetRemoteHistory(imgID, registry string, token []string) ([]s
return nil, err return nil, err
} }
req.Header.Set("Authorization", "Token "+strings.Join(token, ", ")) req.Header.Set("Authorization", "Token "+strings.Join(token, ", "))
if err != nil { r.setUserAgent(req)
return nil, err
}
res, err := r.client.Do(req) res, err := r.client.Do(req)
if err != nil || res.StatusCode != 200 { if err != nil || res.StatusCode != 200 {
if res != nil { if res != nil {