Skip to content

Commit

Permalink
Pass rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ekampp committed Mar 14, 2024
1 parent e19281c commit 1ce8a8a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/rrule/humanizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,11 @@ def yearly
add interval_option if interval_option != 1
add plural?(interval_option) ? 'years' : 'year'

if bymonthday_option || bymonth_option
add 'on'
end
add 'on' if bymonthday_option || bymonth_option

if bymonth_option
add list(options.fetch(:bymonth), method(:monthtext), 'and')
end
add list(options.fetch(:bymonth), method(:monthtext), 'and') if bymonth_option

if bymonthday_option
add list (bymonthday_option.map { |o| nth(o) }), :to_s, 'and'
end
add list (bymonthday_option.map { |o| nth(o) }), :to_s, 'and' if bymonthday_option
end

def weekly
Expand Down

0 comments on commit 1ce8a8a

Please sign in to comment.