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)), } }