Skip to content

Commit a2410be

Browse files
committed
upgrade golangci-lint to v1.39.0
Signed-off-by: monkey <[email protected]>
1 parent 085647a commit a2410be

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/pool/pool.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ func (p *ConnPool) Get(ctx context.Context) (*Conn, error) {
228228
return nil, ErrClosed
229229
}
230230

231-
err := p.waitTurn(ctx)
232-
if err != nil {
231+
if err := p.waitTurn(ctx); err != nil {
233232
return nil, err
234233
}
235234

pubsub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func mapKeys(m map[string]struct{}) []string {
118118
i := 0
119119
for k := range m {
120120
s[i] = k
121-
i++ // nolint:wastedassign
121+
i++
122122
}
123123
return s
124124
}

0 commit comments

Comments
 (0)