lib/eco/api/common/people/default_parsers/csv_parser.rb in eco-helpers-2.6.4 vs lib/eco/api/common/people/default_parsers/csv_parser.rb in eco-helpers-2.7.0
- old
+ new
@@ -34,10 +34,10 @@
def require_headers!(table)
headers = table.headers
abort("Missing headers in CSV") unless headers && !headers.empty?
empty = []
- with_value = headers.each_with_index do |header, idx|
+ headers.each_with_index do |header, idx|
empty << idx if header.to_s.strip.empty?
end
abort("Empty headers in column(s): #{empty.join(', ')}") unless empty.empty?
true
end