Skip to content

Commit

Permalink
Merge pull request redis#1718 from monkey92t/golangci
Browse files Browse the repository at this point in the history
upgrade golangci-lint to v1.39.0
  • Loading branch information
vmihailenco authored Apr 8, 2021
2 parents 085647a + a2410be commit 8b2a710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8b2a710

Please sign in to comment.