From 8c7fc90b6501f21f2b2281a9281693a39d7e72b5 Mon Sep 17 00:00:00 2001 From: Jonas Wanke Date: Tue, 4 Jan 2022 13:01:56 +0100 Subject: [PATCH] refactor: update list formatting in RecurrenceRule constructor assert --- lib/src/recurrence_rule.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/recurrence_rule.dart b/lib/src/recurrence_rule.dart index 5668d3b..0353724 100644 --- a/lib/src/recurrence_rule.dart +++ b/lib/src/recurrence_rule.dart @@ -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.',