Cleanup: simplify some boolean expressions

This commit is contained in:
Rubidium
2021-06-16 23:21:21 +02:00
committed by rubidium42
parent 357af686dc
commit 281a65b3e1
9 changed files with 17 additions and 25 deletions

View File

@@ -930,8 +930,7 @@ void BaseSettingEntry::Init(byte level)
bool BaseSettingEntry::IsVisible(const BaseSettingEntry *item) const
{
if (this->IsFiltered()) return false;
if (this == item) return true;
return false;
return this == item;
}
/**