diff options
author | Itamar <itamar8910@gmail.com> | 2021-03-05 16:54:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-06 09:40:33 +0100 |
commit | 1edaefca3ae1bb0aabc2218cbba1c875a2ef44ed (patch) | |
tree | ebd74f2bc4d9a4b2a1522c6dc14d493c49be0599 /Userland | |
parent | fa4d9da2373995f16bd6a494f0e39077d11096d3 (diff) | |
download | serenity-1edaefca3ae1bb0aabc2218cbba1c875a2ef44ed.zip |
HackStudio: Remove redundant null check when creating a new project file
Project::get_file returns a NonNullRefPtr
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index c665022911..2bd45a0638 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -236,9 +236,6 @@ void HackStudioWidget::open_file(const String& full_filename) new_project_file = it->value; } else { new_project_file = m_project->get_file(filename); - if (!new_project_file) { - new_project_file = ProjectFile::construct_with_name(filename); - } m_open_files.set(filename, *new_project_file); m_open_files_vector.append(filename); m_open_files_view->model()->update(); |