From eda5fe2d67c484396fffd3fdad31f37f450b5685 Mon Sep 17 00:00:00 2001 From: bin liu Date: Tue, 29 Aug 2023 22:37:28 +0800 Subject: [PATCH] remove duplicated code Signed-off-by: bin liu --- registry/storage/cache/redis/redis.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/registry/storage/cache/redis/redis.go b/registry/storage/cache/redis/redis.go index 9efbbf22..80286d71 100644 --- a/registry/storage/cache/redis/redis.go +++ b/registry/storage/cache/redis/redis.go @@ -135,10 +135,6 @@ func (rbds *redisBlobDescriptorService) SetDescriptor(ctx context.Context, dgst return err } - if err := cache.ValidateDescriptor(desc); err != nil { - return err - } - return rbds.setDescriptor(ctx, rbds.pool, dgst, desc) }