From b70c3ac7e4b265bc52b78e97de0a54df89d01d46 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Jun 2026 05:46:04 +0000 Subject: [PATCH] fix redis cache duplicate lookup --- pkg/storage/cache/redis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/cache/redis.go b/pkg/storage/cache/redis.go index 0d3d9559..87d051cb 100644 --- a/pkg/storage/cache/redis.go +++ b/pkg/storage/cache/redis.go @@ -252,9 +252,9 @@ func (d *RedisDriver) HasBlob(digest godigest.Digest, path string) bool { if !goerrors.Is(err, redis.Nil) { d.log.Error().Err(err).Str("hget", d.join(constants.BlobsCache, constants.OriginalBucket)). Str("digest", digest.String()).Msg("unable to get record") - } - return false + return false + } } if currentPath == path {