mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 16:07:35 +00:00
HackStudio: Remove redundant null check when creating a new project file
Project::get_file returns a NonNullRefPtr
This commit is contained in:
parent
fa4d9da237
commit
1edaefca3a
1 changed files with 0 additions and 3 deletions
|
@ -236,9 +236,6 @@ void HackStudioWidget::open_file(const String& full_filename)
|
||||||
new_project_file = it->value;
|
new_project_file = it->value;
|
||||||
} else {
|
} else {
|
||||||
new_project_file = m_project->get_file(filename);
|
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.set(filename, *new_project_file);
|
||||||
m_open_files_vector.append(filename);
|
m_open_files_vector.append(filename);
|
||||||
m_open_files_view->model()->update();
|
m_open_files_view->model()->update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue