HackStudio: Do not check NonnullRefPtr for null value

This commit is contained in:
Daniel Bertalan 2021-07-05 18:51:26 +02:00 committed by Gunnar Beutner
parent 949ea9cb4a
commit 01a0aa6e0b
Notes: sideshowbarker 2024-07-18 10:06:20 +09:00

View file

@ -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);
});
}