Skip to content

Commit

Permalink
Use http.StatusOK instead of magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayu36 committed Oct 16, 2017
1 parent f19a536 commit 7d4daa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func downloadPluginArtifact(url, workdir string) (fpath string, err error) {
return "", err
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
err = fmt.Errorf("http response not OK. code: %d, url: %s", resp.StatusCode, url)
return "", err
}
Expand Down

0 comments on commit 7d4daa3

Please sign in to comment.