forked from mirror/redis
upgrade golangci-lint to v1.39.0
Signed-off-by: monkey <golang@88.com>
This commit is contained in:
parent
085647a59e
commit
a2410beb43
|
@ -228,8 +228,7 @@ func (p *ConnPool) Get(ctx context.Context) (*Conn, error) {
|
|||
return nil, ErrClosed
|
||||
}
|
||||
|
||||
err := p.waitTurn(ctx)
|
||||
if err != nil {
|
||||
if err := p.waitTurn(ctx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue