Skip to content

Commit

Permalink
chore(fetch): Change http request method string to const
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 3, 2024
1 parent 81a3eab commit c2f4ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c2f4ef7

Please sign in to comment.