Fix rubocop issue

This commit is contained in:
Luis Ramos
2020-06-22 16:40:07 +01:00
parent 1c550a594f
commit b49eef5fa9
2 changed files with 1 additions and 9 deletions

View File

@@ -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:

View File

@@ -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