forked from mirror/redis
Merge pull request #1718 from monkey92t/golangci
upgrade golangci-lint to v1.39.0
This commit is contained in:
commit
8b2a7107ee
|
@ -228,8 +228,7 @@ func (p *ConnPool) Get(ctx context.Context) (*Conn, error) {
|
||||||
return nil, ErrClosed
|
return nil, ErrClosed
|
||||||
}
|
}
|
||||||
|
|
||||||
err := p.waitTurn(ctx)
|
if err := p.waitTurn(ctx); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue