From c3c6e0069acb54a9c4d84c10e45126fb9d47c263 Mon Sep 17 00:00:00 2001 From: Vincent Potucek Date: Sat, 18 Oct 2025 17:01:43 +0200 Subject: [PATCH] fix unused tarFile Signed-off-by: Vincent Potucek --- .../boot/buildpack/platform/docker/ExportedImageTar.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java b/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java index 3c9c7753903f..65384412e5fe 100644 --- a/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java +++ b/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java @@ -133,8 +133,7 @@ static LayerArchiveFactory create(ImageReference reference, Path tarFile) throws if (index != null) { return new IndexLayerArchiveFactory(tarFile, index); } - Assert.state(manifest != null, "'manifest' must not be null"); - return new ManifestLayerArchiveFactory(tarFile, manifest); + return new ManifestLayerArchiveFactory(manifest); } } @@ -270,7 +269,7 @@ private static class ManifestLayerArchiveFactory extends LayerArchiveFactory { private final Set layers; - ManifestLayerArchiveFactory(Path tarFile, ImageArchiveManifest manifest) { + ManifestLayerArchiveFactory(ImageArchiveManifest manifest) { this.layers = manifest.getEntries() .stream() .flatMap((entry) -> entry.getLayers().stream())