mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +00:00
LibArchive: Simplify error handling
This commit is contained in:
parent
0f1f925532
commit
ee0c9ed87b
4 changed files with 5 additions and 20 deletions
|
@ -34,8 +34,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
|||
return 0;
|
||||
}
|
||||
|
||||
auto maybe_error = tar_stream.advance();
|
||||
if (maybe_error.is_error())
|
||||
if (tar_stream.advance().is_error())
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue