mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix rubocop issue
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 = {})
|
||||
|
||||
Reference in New Issue
Block a user