Skip to content

Commit bffe116

Browse files
committed
lint redis index
Signed-off-by: sagiahrac <[email protected]>
1 parent e070fa5 commit bffe116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kvcache/kvblock/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (r *RedisIndex) Lookup(ctx context.Context, keys []Key,
8686
podIdentifierSet sets.Set[string],
8787
) (map[Key][]string, error) {
8888
if len(keys) == 0 {
89-
return nil, nil
89+
return make(map[Key][]string), nil
9090
}
9191

9292
logger := klog.FromContext(ctx).WithName("kvblock.RedisIndex.Lookup")

0 commit comments

Comments
 (0)