From a2410beb43526564b0cc8e59bf48eea389bc3fd9 Mon Sep 17 00:00:00 2001 From: monkey Date: Thu, 8 Apr 2021 14:44:31 +0800 Subject: [PATCH] upgrade golangci-lint to v1.39.0 Signed-off-by: monkey --- internal/pool/pool.go | 3 +-- pubsub.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 }