0
0
Fork 0

Fix Rails/CompactBlank cop (#24690)

This commit is contained in:
Matt Jankowski 2023-04-30 08:07:21 -04:00 committed by GitHub
parent d00e45a7d3
commit d902a707a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 7 additions and 18 deletions

View file

@ -132,7 +132,7 @@ class ImportService < BaseService
def parse_import_data!(default_headers)
data = CSV.parse(import_data, headers: true)
data = CSV.parse(import_data, headers: default_headers) unless data.headers&.first&.strip&.include?(' ')
@data = data.reject(&:blank?)
@data = data.compact_blank
end
def import_data