Skip empty intervals when flattening

Closes #403

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2022-01-03 23:15:16 +01:00
parent 4044635e08
commit 8ab44ba5e5

View file

@ -118,6 +118,11 @@ static bool autoAdjust (
for (auto& interval : flatten (latest, getAllExclusions (rules, latest)))
{
if (interval.is_empty ())
{
continue;
}
database.addInterval (interval, verbose);
if (verbose)