Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
opalmer committed Oct 16, 2024
1 parent b0fd843 commit 7d4bd05
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 @@ -32,11 +32,11 @@ func getRedisClientOptions(endpoint string, password string) (*redis.Options, er
// which passed in arguments.
options, err := redis.ParseURL(endpoint)
if err != nil {
return &redis.Options{
return &redis.Options{ //nolint:nilerr // We are specifically falling back here and ignoring the error on purpose.
Network: "tcp",
Addr: endpoint,
Password: password,
}, nil //nolint: nilerr
}, nil
}

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

0 comments on commit 7d4bd05

Please sign in to comment.