perf: Remove redundant validate_extra_data() call

This commit is contained in:
Chris Hennick 2024-06-14 14:19:22 -07:00
parent c218405bdd
commit 7afe34b521
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -943,7 +943,6 @@ impl<W: Write + Seek> ZipWriter<W> {
extensions.add_extra_data(0xa11e, pad_body.into_boxed_slice(), false)?;
}
}
extensions.validate_extra_data()?;
if extensions.central_extra_data.len() > 0 {
file.central_extra_field = Some(extensions.central_extra_data);
}