From 2622e931197ad884faa68a08ad1001967f8462c6 Mon Sep 17 00:00:00 2001 From: Ilia Choly Date: Sun, 7 Jul 2024 17:56:04 -0400 Subject: [PATCH] use http.StatusOK const --- internal/modproxy/modproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/modproxy/modproxy.go b/internal/modproxy/modproxy.go index 70bc8ec..00d31c1 100644 --- a/internal/modproxy/modproxy.go +++ b/internal/modproxy/modproxy.go @@ -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