Skip to content

Commit

Permalink
refactor: update list formatting in RecurrenceRule constructor assert
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 4, 2022
1 parent 8646af1 commit 8c7fc90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/recurrence_rule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ class RecurrenceRule {
assert(
bySetPositions.isEmpty ||
[
...[bySeconds, byMinutes, byHours],
...[byWeekDays, byMonthDays, byYearDays],
...[byWeeks, byMonths],
// This comment is to keep the formatting of the lines below.
bySeconds, byMinutes, byHours,
byWeekDays, byMonthDays, byYearDays,
byWeeks, byMonths,
].any((by) => by.isNotEmpty),
'[BYSETPOS] MUST only be used in conjunction with another BYxxx rule '
'part.',
Expand Down

0 comments on commit 8c7fc90

Please sign in to comment.