Skip to content

Commit 87b4c18

Browse files
committed
Check for nil
1 parent 2336c92 commit 87b4c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ice_cube/schedule.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def enumerate_occurrences(opening_time, closing_time = nil, options = {})
433433
t1 = start_time if t1 < start_time
434434
loop do
435435
break unless (t0 = next_time(t1, closing_time))
436-
break if t0 < options[:range_start]
436+
break if options.has_key?(:range_start) && t0 < options[:range_start]
437437
break if closing_time && t0 > closing_time
438438
if spans ? (t0.end_time > opening_time) : (t0 >= opening_time)
439439
yielder << (block_given? ? yield(t0) : t0)

0 commit comments

Comments
 (0)