Skip to content

Commit

Permalink
use http.StatusOK const
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy committed Jul 7, 2024
1 parent d9085a8 commit 2622e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/modproxy/modproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func FetchRetractions(mod *Module) (Retractions, error) {
if err != nil {
return nil, err
}
if res.StatusCode != 200 {
if res.StatusCode != http.StatusOK {
msg := string(body)
if msg == "" {
msg = res.Status
Expand Down

0 comments on commit 2622e93

Please sign in to comment.