diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 887ed5f19f..3baaf50122 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/app/models/product_import/entry_validator.rb b/app/models/product_import/entry_validator.rb index 64943f4da1..ce5af3091b 100644 --- a/app/models/product_import/entry_validator.rb +++ b/app/models/product_import/entry_validator.rb @@ -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 = {})