From c14986806a5a11dd9e4d779dd1f3144c872a1d11 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sun, 23 Jun 2024 00:14:08 +0000 Subject: [PATCH] Fix divergence from origin/master --- src/read.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/read.rs b/src/read.rs index 3980dd36..8fb33f09 100644 --- a/src/read.rs +++ b/src/read.rs @@ -991,13 +991,7 @@ impl ZipArchive { unsupported_errors.push(ZipError::UnsupportedArchive(e)) } Err(e) => invalid_errors.push(e), - Ok(o) => { - if o.files.len() >= footer.number_of_files as usize { - ok_results.push((footer.clone(), o)) - } else { - invalid_errors.push(InvalidArchive("wrong number of files")) - } - } + Ok(o) => ok_results.push((footer.clone(), o)), } }