1
Fork 0
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:
implicitfield 2022-11-19 18:30:55 +02:00 committed by Andreas Kling
parent 0f1f925532
commit ee0c9ed87b
4 changed files with 5 additions and 20 deletions

View file

@ -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;
}