Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
opalmer committed Oct 16, 2024
1 parent ea3f205 commit 7b3fdda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stash/with_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ var errPasswordsDoNotMatch = goerrors.New("a redis url was parsed that contained
func getRedisClientOptions(endpoint string, password string) (*redis.Options, error) {
// Try parsing the endpoint as a redis url first. The redis library does not define
// a specific error when parsing the url so we fall back on the old config here
//which passed in arguments.
// which passed in arguments.
options, err := redis.ParseURL(endpoint)
if err != nil {
return &redis.Options{

Check failure on line 35 in pkg/stash/with_redis.go

View workflow job for this annotation

GitHub Actions / lint

error is not nil (line 33) but it returns nil (nilerr)
Network: "tcp",
Addr: endpoint,
Password: password,
}, nil
}, nil //nolint: nilerr

Check failure on line 39 in pkg/stash/with_redis.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint: nilerr` is unused for linter "nilerr" (nolintlint)
}

// Ensure the password is either empty or that it matches the password
Expand Down

0 comments on commit 7b3fdda

Please sign in to comment.