Skip to content

Commit b69974e

Browse files
oci/tar: remove a pointless assert
This is a very old assert added during development and probably never intended to remain. Sometimes containers will be in non-ustar tar files and that's OK. In fact, the Fedora bootc image is one such example. Signed-off-by: Allison Karlitskaya <[email protected]>
1 parent b0acd44 commit b69974e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/oci/tar.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ pub fn get_entry<R: Read, ObjectID: FsVerityHashValue>(
176176
}
177177

178178
let header = tar::Header::from_byte_slice(&buf);
179-
assert!(header.as_ustar().is_some());
180179

181180
let size = header.entry_size()?;
182181

0 commit comments

Comments
 (0)