diff --git a/pkg/storage/imagestore/imagestore.go b/pkg/storage/imagestore/imagestore.go index be7ed17ae..22db78cd7 100644 --- a/pkg/storage/imagestore/imagestore.go +++ b/pkg/storage/imagestore/imagestore.go @@ -1930,7 +1930,7 @@ func (is *ImageStore) dedupeBlobs(ctx context.Context, digest godigest.Digest, d } // cache original blob - if ok := is.cache.HasBlob(digest, originalBlob); !ok { + if _, err := is.cache.GetBlob(digest); err != nil { if err := is.cache.PutBlob(digest, originalBlob); err != nil { return err }