Fix the errors found by go vet

Signed-off-by: rick <rick@jenkins-zh.cn>
This commit is contained in:
rick
2020-11-17 09:23:07 +08:00
parent e9f709057a
commit 4d19901025
3 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ func (r *Registry) ImageBlob(image Image, token string) (*ImageBlob, error) {
respBody, _ := GetRespBody(resp)
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNotFound {
log.Error("got response: " + string(resp.StatusCode) + string(respBody))
log.Errorf("got response: statusCode is '%d', body is '%s'\n", resp.StatusCode, respBody)
return nil, fmt.Errorf("got image blob faild")
}