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

Userland: Propagate errors with TRY() where possible

This commit is contained in:
Tim Ledbetter 2024-02-07 20:43:43 +00:00 committed by Tim Flynn
parent 3ffa2a39bc
commit 2331d2bafa
6 changed files with 20 additions and 20 deletions

View file

@ -30,7 +30,7 @@
namespace TerminalSettings {
ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::create()
{
auto widget = MainWidget::try_create().release_value_but_fixme_should_propagate_errors();
auto widget = TRY(MainWidget::try_create());
TRY(widget->setup());
return widget;
}