1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Shell: Make AST::dump() ErrorOr-aware

This commit is contained in:
Ali Mohammad Pur 2023-02-18 10:56:59 +03:30 committed by Ali Mohammad Pur
parent beeb58bd93
commit d575c50f3e
4 changed files with 321 additions and 267 deletions

View file

@ -43,7 +43,7 @@ int Shell::builtin_dump(int argc, char const** argv)
if (!parser.parse(argc, const_cast<char**>(argv), Core::ArgsParser::FailureBehavior::PrintUsage))
return 1;
(posix ? Posix::Parser { source }.parse() : Parser { source }.parse())->dump(0);
(void)(posix ? Posix::Parser { source }.parse() : Parser { source }.parse())->dump(0);
return 0;
}