1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Fix golangci-lint check

This commit is contained in:
Vladimir Mihailenco
2021-03-23 10:55:14 +02:00
parent e3c1e884eb
commit 02a9c81ef1
9 changed files with 26 additions and 27 deletions

View File

@ -305,7 +305,8 @@ func (c *baseClient) withConn(
c.releaseConn(ctx, cn, err)
}()
done := ctx.Done()
done := ctx.Done() //nolint:ifshort
if done == nil {
err = fn(ctx, cn)
return err