recur: Code cleanup

This commit is contained in:
Paul Beckingham 2017-01-26 19:55:43 -05:00
parent 5fd6f716a6
commit 223ca89d73

View file

@ -183,7 +183,7 @@ bool generateDueDates (Task& parent, std::vector <Datetime>& allDue)
// If i > until, it means there are no more tasks to generate, and if the
// parent mask contains all + or X, then there never will be another task
// to generate, and this parent task may be safely reaped.
std::string mask = parent.get ("mask");
auto mask = parent.get ("mask");
if (mask.length () == allDue.size () &&
mask.find ('-') == std::string::npos)
return false;