From aa14fd236c049094b7ea3055ee6a7e645234f969 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Mon, 22 Jun 2020 16:24:45 +0100 Subject: [PATCH] Fix rubocop issue --- .rubocop_todo.yml | 6 ------ app/models/product_import/entry_validator.rb | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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 = {})