Skip to content

Commit

Permalink
fix bug (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide authored Dec 3, 2020
1 parent 5b95950 commit cbdf62f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public NavigableSet<LocalDateInterval> except(LocalDateInterval annen) {
return new TreeSet<>(Collections.singletonList(this));
}

var resultat = new TreeSet<>();
NavigableSet<LocalDateInterval> resultat = new TreeSet<>();
if (getFomDato().isBefore(annen.getFomDato())) {
resultat.add(new LocalDateInterval(getFomDato(), min(getTomDato(), annen.getFomDato().minusDays(1))));
}
Expand Down

0 comments on commit cbdf62f

Please sign in to comment.