Fix rubocop issue

This commit is contained in:
Luis Ramos
2020-06-22 16:24:45 +01:00
parent ab59ab45f5
commit aa14fd236c
2 changed files with 1 additions and 7 deletions

View File

@@ -1469,12 +1469,6 @@ Style/NumericPredicate:
- 'lib/spree/money_decorator.rb'
- 'lib/tasks/sample_data.rake'
# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantParentheses:
Exclude:
- 'app/models/product_import/entry_validator.rb'
# Offense count: 231
Style/Send:
Exclude:

View File

@@ -405,7 +405,7 @@ module ProductImport
def inventory_permission?(enterprise_id, producer_id)
@current_user.admin? ||
( @inventory_permissions[enterprise_id]&.include?(producer_id) )
@inventory_permissions[enterprise_id]&.include?(producer_id)
end
def mark_as_invalid(entry, options = {})