mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
migrate golangci-lint config to v2 format (#3354)
* migrate golangci-lint config to v2 format * chore: skip CI on migration [skip ci] * Bump golangci version * Address several golangci-lint/staticcheck warnings * change staticchecks settings
This commit is contained in:
@ -111,9 +111,10 @@ type ClusterOptions struct {
|
||||
}
|
||||
|
||||
func (opt *ClusterOptions) init() {
|
||||
if opt.MaxRedirects == -1 {
|
||||
switch opt.MaxRedirects {
|
||||
case -1:
|
||||
opt.MaxRedirects = 0
|
||||
} else if opt.MaxRedirects == 0 {
|
||||
case 0:
|
||||
opt.MaxRedirects = 3
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user