Skip to content

Commit

Permalink
enable usestdlibvars
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Sep 30, 2024
1 parent bee005e commit 5006942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ linters:
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace
- wrapcheck
Expand Down
2 changes: 1 addition & 1 deletion ImageWidgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (i *ImageWithURLWidget) Build() {
// Load image from url
client := &http.Client{Timeout: i.downloadTimeout}

req, err := http.NewRequestWithContext(downloadContext, "GET", i.imgURL, http.NoBody)
req, err := http.NewRequestWithContext(downloadContext, http.MethodGet, i.imgURL, http.NoBody)
if err != nil {
errorFn(err)
return
Expand Down

0 comments on commit 5006942

Please sign in to comment.