mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
golint warnings are removed
This commit is contained in:
6
redis.go
6
redis.go
@ -11,7 +11,7 @@ import (
|
||||
"github.com/go-redis/redis/internal/proto"
|
||||
)
|
||||
|
||||
// Redis nil reply returned when key does not exist.
|
||||
// Nil reply redis returned when key does not exist.
|
||||
const Nil = internal.Nil
|
||||
|
||||
func init() {
|
||||
@ -172,9 +172,9 @@ func (c *baseClient) retryBackoff(attempt int) time.Duration {
|
||||
func (c *baseClient) cmdTimeout(cmd Cmder) time.Duration {
|
||||
if timeout := cmd.readTimeout(); timeout != nil {
|
||||
return *timeout
|
||||
} else {
|
||||
return c.opt.ReadTimeout
|
||||
}
|
||||
|
||||
return c.opt.ReadTimeout
|
||||
}
|
||||
|
||||
// Close closes the client, releasing any open resources.
|
||||
|
Reference in New Issue
Block a user