1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

Shell: Convert all immediately convertible fallible functions to ErrorOr

This commit is contained in:
Ali Mohammad Pur 2023-02-18 17:39:41 +03:30 committed by Ali Mohammad Pur
parent e403dbabfa
commit 0c28fd41ed
7 changed files with 59 additions and 50 deletions

View file

@ -83,7 +83,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (cursor >= 0)
editor.set_cursor(cursor);
}
shell->highlight(editor);
(void)shell->highlight(editor);
};
editor->on_tab_complete = [&](const Line::Editor&) {
return shell->complete();