Fix divergence from origin/master

This commit is contained in:
Chris Hennick 2024-06-23 00:14:08 +00:00 committed by Chris Hennick
parent 81b5fb6088
commit c14986806a

View file

@ -991,13 +991,7 @@ impl<R: Read + Seek> ZipArchive<R> {
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)),
}
}