From faf436d108e1661905c93415499b02adf7b6566d Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 7 Jun 2023 13:42:18 -0400 Subject: [PATCH] check: be able to complain about both diff digests and sizes When we're comparing a layer's regenerated diff against the one that was used to initialize it, don't stop at just complaining about the digest if the length is also coming up wrong. Signed-off-by: Nalin Dahyabhai --- check.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/check.go b/check.go index 1ce63f63e7..e58084fc7c 100644 --- a/check.go +++ b/check.go @@ -333,7 +333,6 @@ func (s *store) Check(options *CheckOptions) (CheckReport, error) { } else { report.ROLayers[id] = append(report.ROLayers[id], err) } - return } if layer.UncompressedSize != -1 && counter.Count != layer.UncompressedSize { // We expected the diff to have a specific size, and @@ -347,7 +346,6 @@ func (s *store) Check(options *CheckOptions) (CheckReport, error) { } else { report.ROLayers[id] = append(report.ROLayers[id], err) } - return } }() }