1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Shell: Use JsonArray::append in save_to

We can convert it into a failable function here easily
This commit is contained in:
Cameron Youell 2023-04-17 16:02:41 +10:00 committed by Andreas Kling
parent ba38984a60
commit da305017de
2 changed files with 5 additions and 3 deletions

View file

@ -402,7 +402,7 @@ private:
bool is_allowed_to_modify_termios(const AST::Command&) const;
// FIXME: Port to Core::Property
void save_to(JsonObject&);
ErrorOr<void> save_to(JsonObject&);
void bring_cursor_to_beginning_of_a_line() const;
Optional<int> resolve_job_spec(StringView);