mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
TextEditor: Add some missing curly braces around a nested if statement
This commit is contained in:
parent
e5ceabfbbb
commit
443775754f
Notes:
sideshowbarker
2024-07-18 18:48:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/443775754f8
1 changed files with 2 additions and 1 deletions
|
@ -70,9 +70,10 @@ int main(int argc, char** argv)
|
|||
text_widget.initialize_menubar(menubar);
|
||||
window->set_menubar(menubar);
|
||||
|
||||
if (file_to_edit)
|
||||
if (file_to_edit) {
|
||||
if (!text_widget.open_file(file_to_edit))
|
||||
return 1;
|
||||
}
|
||||
|
||||
text_widget.update_title();
|
||||
|
||||
|
|
Loading…
Reference in a new issue