Closed J3RN closed 7 years ago
I added an explicit return of '0' if the value of left_today is negative.
left_today
I also did a slight refactor. I split time_remaining_today into three methods, two of which are small, private methods.
time_remaining_today
I added an explicit return of '0' if the value of
left_today
is negative.I also did a slight refactor. I split
time_remaining_today
into three methods, two of which are small, private methods.