We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0648b0 commit f85d1e5Copy full SHA for f85d1e5
lib/forever/job.rb
@@ -42,6 +42,7 @@ def parse_at(*args)
42
raise "#{at} must be a string" unless at.is_a?(String)
43
raise "#{at} has not a colon separator" unless at =~ /:/
44
hour, min = at.split(":")
45
+ min = '' if min.nil?
46
raise "Failed to parse #{at}" if hour.to_i >= 24 || min.to_i >= 60
47
[hour, min]
48
end
0 commit comments