From c2f4ef74de821bbe3d49789d54948bd1474c11ca Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 2 May 2024 23:45:16 -0500 Subject: [PATCH] chore(fetch): Change http request method string to const --- internal/fetch/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fetch/fetch.go b/internal/fetch/fetch.go index 44ab63d..23a2d4a 100644 --- a/internal/fetch/fetch.go +++ b/internal/fetch/fetch.go @@ -42,7 +42,7 @@ func (f *Fetch) Do(ctx context.Context) (*nightscout.Properties, error) { } // Fetch JSON - req, err := http.NewRequestWithContext(ctx, "GET", f.url.String(), nil) + req, err := http.NewRequestWithContext(ctx, http.MethodGet, f.url.String(), nil) if err != nil { return nil, err }