Skip to content

Commit 09d895f

Browse files
committed
Expand conditional
1 parent cc9e395 commit 09d895f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ice_cube/time_util.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ def self.ensure_time(time, date_eod = false)
6464
warn "IceCube: DateTime support is deprecated (please use Time) at: #{ caller[2] }"
6565
Time.local(time.year, time.month, time.day, time.hour, time.min, time.sec)
6666
when Date
67-
date_eod ? end_of_date(time) : time.to_time
67+
if date_eod
68+
end_of_date(time)
69+
else
70+
time.to_time
71+
end
6872
else
6973
time
7074
end

0 commit comments

Comments
 (0)