mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
GDirectoryModel: Fix redundant identical comparison.
Found by PVS-Studio.
This commit is contained in:
parent
ab8891c064
commit
673a98258b
1 changed files with 2 additions and 2 deletions
|
@ -158,9 +158,9 @@ GIcon GDirectoryModel::icon_for(const Entry& entry) const
|
||||||
} else {
|
} else {
|
||||||
thumbnail_cache().resource().set(path, nullptr);
|
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 GIcon(m_filetype_image_icon.bitmap_for_size(16), *entry.thumbnail);
|
||||||
}
|
}
|
||||||
return m_file_icon;
|
return m_file_icon;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue