Skip to content

Commit

Permalink
chore(golangci-lint): enable usestdlibvars
Browse files Browse the repository at this point in the history
See #331.
  • Loading branch information
bfabio committed Mar 1, 2023
1 parent a116bde commit 4a89341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ linters:
- tparallel
- unconvert
# - unparam
# - usestdlibvars
- usestdlibvars
# - varnamelen
- wastedassign
# - whitespace
Expand Down
3 changes: 2 additions & 1 deletion scanner/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"math/rand"
"net/http"
"net/url"
"os"
"strings"
Expand Down Expand Up @@ -156,7 +157,7 @@ Retry:
}

if err != nil {
if resp.StatusCode == 404 {
if resp.StatusCode == http.StatusNotFound {
return ErrPubliccodeNotFound
}

Expand Down

0 comments on commit 4a89341

Please sign in to comment.