diff options
-rw-r--r-- | Userland/Utilities/base64.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Utilities/base64.cpp b/Userland/Utilities/base64.cpp index 28e521644f..5d9047f263 100644 --- a/Userland/Utilities/base64.cpp +++ b/Userland/Utilities/base64.cpp @@ -27,9 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) if (filepath == nullptr || strcmp(filepath, "-") == 0) { buffer = Core::File::standard_input()->read_all(); } else { - auto result = Core::File::open(filepath, Core::OpenMode::ReadOnly); - VERIFY(!result.is_error()); - auto file = result.value(); + auto file = TRY(Core::File::open(filepath, Core::OpenMode::ReadOnly)); buffer = file->read_all(); } |