mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Logic error in util.cpp
- taskDiff() was returning true whenever beforeOnly.size() or afterOnly.size() were nonzero, which made no sense and was clearly a typo
This commit is contained in:
parent
6d6a5492bb
commit
18f82c1207
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ bool taskDiff (const Task& before, const Task& after)
|
||||||
std::vector <std::string> afterOnly;
|
std::vector <std::string> afterOnly;
|
||||||
listDiff (beforeAtts, afterAtts, beforeOnly, afterOnly);
|
listDiff (beforeAtts, afterAtts, beforeOnly, afterOnly);
|
||||||
|
|
||||||
if (beforeOnly.size () ||
|
if (beforeOnly.size () !=
|
||||||
afterOnly.size ())
|
afterOnly.size ())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue