lib/cotcube-bardata/eods.rb in cotcube-bardata-0.1.4 vs lib/cotcube-bardata/eods.rb in cotcube-bardata-0.1.5

- old
+ new

@@ -13,10 +13,11 @@ def provide_most_liquids_by_eod(symbol: nil, id: nil, # rubocop:disable Metrics/ParameterLists config: init, date: last_trade_date, filter: :volume_part, age: 1.hour) - sym = get_id_set(symbol: symbol, id: id) if symbol or id + sym = get_id_set(symbol: symbol, id: id) if symbol || id + # noinspection RubyScope eods = provide_eods(id: sym.nil? ? nil : sym[:id], config: config, dates: date, filter: filter) result = [] eods.map do |eod| symbol = eod[0..1] contract = eod[2..4]