diff --git a/redis.go b/redis.go index 678e0eee..53a47006 100644 --- a/redis.go +++ b/redis.go @@ -85,7 +85,7 @@ func (hs hooks) processPipeline( ctx context.Context, cmds []Cmder, fn func(context.Context, []Cmder) error, ) error { if len(hs.hooks) == 0 { - err := fn(ctx, cmds) + err := fn(ctx, cmds) return err }