Revert "[clang-tidy] Simplify boolean expressions"

This reverts commit 51870dff34.
This commit is contained in:
Paul Beckingham 2020-12-05 16:18:15 -05:00
parent 623d5ceb59
commit 364b4ea8bd
8 changed files with 51 additions and 25 deletions

View file

@ -174,8 +174,11 @@ bool generateDueDates (Task& parent, std::vector <Datetime>& allDue)
// parent mask contains all + or X, then there never will be another task
// to generate, and this parent task may be safely reaped.
auto mask = parent.get ("mask");
return !(mask.length () == allDue.size () &&
mask.find ('-') == std::string::npos);
if (mask.length () == allDue.size () &&
mask.find ('-') == std::string::npos)
return false;
return true;
}
if (i > now)