Skip to content

Commit

Permalink
Simplify formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Dec 31, 2024
1 parent 174918b commit 5c55766
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/src/codecs/text/encoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,11 @@ class RecurrenceRuleToTextEncoder extends Converter<RecurrenceRule, String> {
input.hasByMonths;

if (appendByWeeksDirectly) {
output.add(
_formatByWeeks(
input,
),
);
output.add(_formatByWeeks(input));
}
if (appendByMonthsDirectly) {
assert(!appendByWeeksDirectly);
output.add(
_formatByMonths(
input,
),
);
output.add(_formatByMonths(input));
}

final limits = [
Expand Down

0 comments on commit 5c55766

Please sign in to comment.