mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Autocorrect rubocop offense Style/RedundantAssignment
This commit is contained in:
@@ -709,12 +709,6 @@ Style/RedundantArgument:
|
||||
Exclude:
|
||||
- 'engines/dfc_provider/app/services/authorization_control.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/RedundantAssignment:
|
||||
Exclude:
|
||||
- 'spec/models/database_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: AutoCorrect, AllowComments.
|
||||
|
||||
@@ -102,7 +102,7 @@ RSpec.describe "Database" do
|
||||
orphaned_records_query = generate_orphaned_records_query(model_class, foreign_key_table_name,
|
||||
foreign_key_column)
|
||||
|
||||
migration = <<~MIGRATION
|
||||
<<~MIGRATION
|
||||
# Orphaned records can be found before running this migration with the following SQL:
|
||||
|
||||
#{orphaned_records_query}
|
||||
@@ -113,8 +113,6 @@ RSpec.describe "Database" do
|
||||
end
|
||||
end
|
||||
MIGRATION
|
||||
|
||||
migration
|
||||
end
|
||||
|
||||
def generate_orphaned_records_query(model_class, foreign_key_table_name, foreign_key_column)
|
||||
|
||||
Reference in New Issue
Block a user