diff options
author | implicitfield <114500360+implicitfield@users.noreply.github.com> | 2022-11-19 18:30:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-23 11:19:16 +0100 |
commit | ee0c9ed87b4a6977d30517947ea7ba2321d47c1e (patch) | |
tree | b930d95076b65cf6a45265417efc0b76ff7779b4 /Meta | |
parent | 0f1f92553213c6c2c7268078c9d39b813c24bb49 (diff) | |
download | serenity-ee0c9ed87b4a6977d30517947ea7ba2321d47c1e.zip |
LibArchive: Simplify error handling
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzTar.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzTar.cpp b/Meta/Lagom/Fuzzers/FuzzTar.cpp index 45d4cd9a02..5e76197eae 100644 --- a/Meta/Lagom/Fuzzers/FuzzTar.cpp +++ b/Meta/Lagom/Fuzzers/FuzzTar.cpp @@ -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; } |