[App] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-15 03:58:59 +02:00
parent a04db55476
commit 881b168beb
3 changed files with 7 additions and 7 deletions

View File

@@ -458,7 +458,7 @@ bool Metadata::satisfies(const Meta::Dependency& dep)
}
auto parsedExpression = App::Expression::parse(nullptr, dep.condition);
auto result = parsedExpression->eval();
if (boost::any_cast<bool> (result->getValueAsAny()) == false)
if (!boost::any_cast<bool> (result->getValueAsAny()))
return false;
}