diff --git a/internal/pool/pool.go b/internal/pool/pool.go index 254a18d..74fbb37 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -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 } diff --git a/pubsub.go b/pubsub.go index bd5bd2a..c56270b 100644 --- a/pubsub.go +++ b/pubsub.go @@ -118,7 +118,7 @@ func mapKeys(m map[string]struct{}) []string { i := 0 for k := range m { s[i] = k - i++ // nolint:wastedassign + i++ } return s }