Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -270,7 +269,7 @@ private static class ManifestLayerArchiveFactory extends LayerArchiveFactory {

private final Set<String> layers;

ManifestLayerArchiveFactory(Path tarFile, ImageArchiveManifest manifest) {
Copy link
Author

@Pankraz76 Pankraz76 Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ManifestLayerArchiveFactory(ImageArchiveManifest manifest) {
this.layers = manifest.getEntries()
.stream()
.flatMap((entry) -> entry.getLayers().stream())
Expand Down