mirror of
https://github.com/redis/go-redis.git
synced 2025-08-07 12:42:55 +03:00
Update golangci-lint to v1.32
This commit is contained in:
3
redis.go
3
redis.go
@@ -2,6 +2,7 @@ package redis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
@@ -230,7 +231,7 @@ func (c *baseClient) _getConn(ctx context.Context) (*pool.Conn, error) {
|
||||
})
|
||||
if err != nil {
|
||||
c.connPool.Remove(ctx, cn, err)
|
||||
if err := internal.Unwrap(err); err != nil {
|
||||
if err := errors.Unwrap(err); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user