1
0
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:
Mitsuo Heijo
2020-11-17 23:08:15 +09:00
parent d4f01eda28
commit f5a1707d3c
7 changed files with 9 additions and 15 deletions

View File

@@ -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