1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

TextEditor: Add some missing curly braces around a nested if statement

This commit is contained in:
Andreas Kling 2021-05-01 18:45:20 +02:00
parent e5ceabfbbb
commit 443775754f

View file

@ -70,9 +70,10 @@ int main(int argc, char** argv)
text_widget.initialize_menubar(menubar); text_widget.initialize_menubar(menubar);
window->set_menubar(menubar); window->set_menubar(menubar);
if (file_to_edit) if (file_to_edit) {
if (!text_widget.open_file(file_to_edit)) if (!text_widget.open_file(file_to_edit))
return 1; return 1;
}
text_widget.update_title(); text_widget.update_title();