mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 16:10:04 +01:00
use fmt.Errorf(...) instead of errors.new(fmt.Sprintf(...))
Signed-off-by: Benoit Gagnon <benoit.gagnon@ubisoft.com>
This commit is contained in:
parent
f09b41c7da
commit
2bf42f11cd
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ func downloadGitHubArchive(filepath string, url string) error {
|
||||||
}
|
}
|
||||||
color.Cyan("GET %s %d", url, resp.StatusCode)
|
color.Cyan("GET %s %d", url, resp.StatusCode)
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
return errors.New(fmt.Sprintf("unexpected status code %d", resp.StatusCode))
|
return fmt.Errorf("unexpected status code %d", resp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue