mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
[clang-tidy] Simplify boolean expressions
Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
13e1bf7204
commit
51870dff34
8 changed files with 25 additions and 51 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue