Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcf committed Mar 4, 2021
1 parent 37b49ce commit 42cf590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/business/calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def self.calendar_directories
end
private_class_method :calendar_directories

# rubocop:disable Metrics/MethodLength
def self.load(calendar_name)
data = find_calendar_data(calendar_name)
raise "No such calendar '#{calendar_name}'" unless data
Expand All @@ -31,6 +32,7 @@ def self.load(calendar_name)
extra_working_dates: data["extra_working_days"],
)
end
# rubocop:enable Metrics/MethodLength

def self.find_calendar_data(calendar_name)
calendar_directories.detect do |path|
Expand All @@ -55,7 +57,7 @@ def self.load_cached(calendar)

DAY_NAMES = %( mon tue wed thu fri sat sun )

attr_reader :name,:holidays, :working_days, :extra_working_dates
attr_reader :name, :holidays, :working_days, :extra_working_dates

def initialize(name:, extra_working_dates: nil, working_days: nil, holidays: nil)
@name = name
Expand Down

0 comments on commit 42cf590

Please sign in to comment.