mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Add braces to if- and for-statements
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
11a57e3cc5
commit
d54df087cb
1 changed files with 6 additions and 0 deletions
|
@ -118,9 +118,15 @@ std::vector <Range> getAllExclusions (
|
|||
// overlap with range.
|
||||
std::vector <Range> exclusionRanges;
|
||||
for (auto& exclusion : exclusions)
|
||||
{
|
||||
if (exclusion.tokens ()[1] != "day")
|
||||
{
|
||||
for (auto& r : exclusion.ranges (range))
|
||||
{
|
||||
exclusionRanges.push_back (r);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return merge (addRanges (range, results, exclusionRanges));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue