[clang-tidy] Simplify boolean expressions

Found with readability-simplify-boolean-expr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-09-27 20:53:23 -07:00 committed by Paul Beckingham
parent 13e1bf7204
commit 51870dff34
8 changed files with 25 additions and 51 deletions

View file

@ -174,11 +174,8 @@ 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");
if (mask.length () == allDue.size () &&
mask.find ('-') == std::string::npos)
return false;
return true;
return !(mask.length () == allDue.size () &&
mask.find ('-') == std::string::npos);
}
if (i > now)