Add braces to if- and for-statements

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2021-11-12 21:59:23 +01:00
parent 11a57e3cc5
commit d54df087cb

View file

@ -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));
}