Refactor: don't need to return Ok if add_extra_data failed

This commit is contained in:
Chris Hennick 2023-05-13 14:05:32 -07:00
parent d53d2d61b6
commit e86efb24b0
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -159,8 +159,7 @@ impl arbitrary::Arbitrary for FileOptions {
}
let extra_data = Vec::<ExtraDataField>::arbitrary(&mut u)?;
for field in extra_data {
let _ =
options.add_extra_data(field.header_id, field.data.as_slice(), field.central_only);
options.add_extra_data(field.header_id, field.data.as_slice(), field.central_only)?;
}
Ok(options)
}