upgrade golangci-lint to v1.39.0

Signed-off-by: monkey <golang@88.com>
This commit is contained in:
monkey 2021-04-08 14:44:31 +08:00
parent 085647a59e
commit a2410beb43
2 changed files with 2 additions and 3 deletions

View File

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

View File

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