mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
HackStudio: Do not check NonnullRefPtr for null value
This commit is contained in:
parent
949ea9cb4a
commit
01a0aa6e0b
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue