💩👌 make lint happy

This commit is contained in:
fumiama
2021-08-06 20:02:26 +08:00
parent 26f51dae86
commit 70a970679f
3 changed files with 5 additions and 4 deletions

View File

@@ -91,7 +91,8 @@ func netGet(dest string, header http.Header) ([]byte, error) {
}
if code := resp.StatusCode; code != 200 {
// 如果返回不是200则立刻抛出错误
return nil, errors.New(fmt.Sprintf("code %d", code))
errmsg := fmt.Sprintf("code %d", code)
return nil, errors.New(errmsg)
}
return body, nil
}