Fix long lines

This commit is contained in:
Luis Ramos
2020-06-22 16:13:23 +01:00
parent 0f2e07cc2d
commit ff68303ef6
2 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,6 @@ Layout/LineLength:
- app/models/enterprise_role.rb
- app/models/inventory_item.rb
- app/models/product_import/entry_processor.rb
- app/models/product_import/product_importer.rb
- app/models/product_import/spreadsheet_entry.rb
- app/models/product_import/unit_converter.rb
- app/models/proxy_order.rb

View File

@@ -2,7 +2,7 @@
# and begins the processing of the spreadsheet entries by the other product import classes.
# As spreadsheets can contain any number of entries (1000+), the import is split into smaller chunks
# of 100 items, and processed sequentially over a number of requests to avoid server timeouts.
# The various bits of collated information such as file upload status, per-item errors or user feedback
# The various bits of collated info such as file upload status, per-item errors or user feedback
# on the saving process are made available to the controller through this object.
require 'roo'
@@ -59,7 +59,8 @@ module ProductImport
def product_field_errors?
@entries.each do |entry|
return true if entry.errors.messages.value?([I18n.t('admin.product_import.model.not_updatable')])
return true if entry.errors.messages.
value?([I18n.t('admin.product_import.model.not_updatable')])
end
false
end