1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Small if err cleaning

Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
Antonio Murdaca 2015-04-26 18:50:25 +02:00
parent 531ec3cac9
commit 844538142d
29 changed files with 51 additions and 74 deletions

View file

@ -597,8 +597,7 @@ func (r *Session) SearchRepositories(term string) (*SearchResults, error) {
return nil, httputils.NewHTTPRequestError(fmt.Sprintf("Unexpected status code %d", res.StatusCode), res)
}
result := new(SearchResults)
err = json.NewDecoder(res.Body).Decode(result)
return result, err
return result, json.NewDecoder(res.Body).Decode(result)
}
func (r *Session) GetAuthConfig(withPasswd bool) *cliconfig.AuthConfig {