From b49eef5fa95afdff52757cecaaa8f720409560bb Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Mon, 22 Jun 2020 16:40:07 +0100 Subject: [PATCH] Fix rubocop issue --- .rubocop_todo.yml | 8 -------- app/models/product_import/product_importer.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 4c24cf1d7d..49e20f078a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -27,14 +27,6 @@ Lint/IneffectiveAccessModifier: - 'lib/open_food_network/feature_toggle.rb' - 'spec/lib/open_food_network/reports/report_spec.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AllowedMethods. -# AllowedMethods: present?, blank?, presence, try, try! -Lint/SafeNavigationConsistency: - Exclude: - - 'app/models/product_import/product_importer.rb' - # Offense count: 3 Lint/ShadowingOuterLocalVariable: Exclude: diff --git a/app/models/product_import/product_importer.rb b/app/models/product_import/product_importer.rb index 901db7087e..75e9d78846 100644 --- a/app/models/product_import/product_importer.rb +++ b/app/models/product_import/product_importer.rb @@ -191,7 +191,7 @@ module ProductImport end def staged_import? - @import_settings&.key?(:start) && @import_settings.key?(:end) + @import_settings&.key?(:start) && @import_settings&.key?(:end) end def init_permissions