GDirectoryModel: Fix redundant identical comparison.
Found by PVS-Studio.
This commit is contained in:
parent
ab8891c064
commit
673a98258b
Notes:
sideshowbarker
2024-07-19 12:57:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/673a98258b2
1 changed files with 2 additions and 2 deletions
|
@ -158,9 +158,9 @@ GIcon GDirectoryModel::icon_for(const Entry& entry) const
|
|||
} else {
|
||||
thumbnail_cache().resource().set(path, nullptr);
|
||||
}
|
||||
if (!entry.thumbnail)
|
||||
return m_filetype_image_icon;
|
||||
}
|
||||
if (!entry.thumbnail)
|
||||
return m_filetype_image_icon;
|
||||
return GIcon(m_filetype_image_icon.bitmap_for_size(16), *entry.thumbnail);
|
||||
}
|
||||
return m_file_icon;
|
||||
|
|
Loading…
Add table
Reference in a new issue