summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/DevTools/HackStudio/Project.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/Project.cpp b/Userland/DevTools/HackStudio/Project.cpp
index 12aca881f6..1ffdbebfc0 100644
--- a/Userland/DevTools/HackStudio/Project.cpp
+++ b/Userland/DevTools/HackStudio/Project.cpp
@@ -41,8 +41,7 @@ void Project::for_each_text_file(Function<void(const ProjectFile&)> callback) co
{
traverse_model(model(), {}, [&](auto& index) {
auto file = get_file(model().full_path(index));
- if (file)
- callback(*file);
+ callback(*file);
});
}