Skip to content

Commit

Permalink
Update lib/src/iteration/iteration.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Wanke <[email protected]>
  • Loading branch information
jonasbadstuebner and JonasWanke authored Jan 24, 2024
1 parent 81b128c commit ca0a4de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/iteration/iteration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ Iterable<DateTime> getRecurrenceRuleInstances(
var currentStart = start;

if (count == null && after != null) {
/// Shortcut for not calculating unnecessary recurrences.
final skippableDifference = after.difference(start);

currentStart = currentStart.add(skippableDifference);
// Shortcut for not calculating unnecessary recurrences.
currentStart = after;
}

var timeSet = makeTimeSet(rrule, start.timeOfDay);
Expand Down

0 comments on commit ca0a4de

Please sign in to comment.