enddate = v[:enddate]
begin
parsed = enddate && Date.parse(enddate)
- rescue
+ rescue StandardError
parsed = nil
end
!parsed.is_a?(Date) || (parsed.is_a?(Date) && parsed.past?)
# rotate all banner queue positions
index = cval.to_i
- cookies[ckey] = index - 1 if index > 0
+ cookies[ckey] = index - 1 if index.positive?
# pick banner with mininum queue position
next if index > min_index