mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix rubocop issue
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user