Skip to content

Commit

Permalink
fix: correct lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed May 6, 2024
1 parent fbdd1bc commit 3d368c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ linters:
- varcheck
- deadcode
- structcheck
- gomnd
- execinquery

linters-settings:
wrapcheck:
Expand Down
2 changes: 1 addition & 1 deletion internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func ExtractVendorToken(rawToken, username, password string) (string, string) {

var vendor, token string

if len(split) == 2 { //nolint:gomnd
if len(split) == 2 { //nolint:mnd
vendor = split[0]
token = split[1]
} else {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
)

// Default return default configuration.
// nolint: gomnd
// nolint: mnd
func Default() Config {
return Config{
DefaultVendor: "snapp",
Expand Down

0 comments on commit 3d368c1

Please sign in to comment.