Autocorrect rubocop offense Style/RedundantAssignment

This commit is contained in:
Carlos Chitty
2025-03-25 13:21:58 -04:00
parent 9fa42cae47
commit ba693e3ecf
2 changed files with 1 additions and 9 deletions

View File

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

View File

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