Skip to content

Commit 8b2a710

Browse files
authored
Merge pull request #1718 from monkey92t/golangci
upgrade golangci-lint to v1.39.0
2 parents 085647a + a2410be commit 8b2a710

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)