Skip to content

Commit

Permalink
Fixing crash when set ':at' parameter such as "12:"
Browse files Browse the repository at this point in the history
  • Loading branch information
mzyy94 committed Jun 26, 2015
1 parent d0648b0 commit f85d1e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/forever/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def parse_at(*args)
raise "#{at} must be a string" unless at.is_a?(String)
raise "#{at} has not a colon separator" unless at =~ /:/
hour, min = at.split(":")
min = '' if min.nil?
raise "Failed to parse #{at}" if hour.to_i >= 24 || min.to_i >= 60
[hour, min]
end
Expand Down

0 comments on commit f85d1e5

Please sign in to comment.