mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-09 04:37:52 +03:00
HackStudio: Do not check NonnullRefPtr for null value
This commit is contained in:
parent
949ea9cb4a
commit
01a0aa6e0b
Notes:
sideshowbarker
2024-07-18 10:06:20 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/01a0aa6e0b0 Pull-request: https://github.com/SerenityOS/serenity/pull/8470 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gunnarbeutner ✅
@ -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…
Reference in New Issue
Block a user