From e5435e7e77c23f27df42622ac3af9d93a99a87cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Tue, 9 Apr 2024 23:21:35 +0200 Subject: [PATCH] Avoid two consecutive ifs with the same condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should not change behavior. Signed-off-by: Miloslav Trmač --- docker/docker_image_dest.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/docker_image_dest.go b/docker/docker_image_dest.go index 7f59ea3fe3..7f7a74bd37 100644 --- a/docker/docker_image_dest.go +++ b/docker/docker_image_dest.go @@ -361,8 +361,6 @@ func (d *dockerImageDestination) TryReusingBlobWithOptions(ctx context.Context, logrus.Debugf("Error parsing BlobInfoCache location reference: %s", err) continue } - } - if !candidate.UnknownLocation { if candidate.CompressionAlgorithm != nil { logrus.Debugf("Trying to reuse blob with cached digest %s compressed with %s in destination repo %s", candidate.Digest.String(), candidate.CompressionAlgorithm.Name(), candidateRepo.Name()) } else {