From 53ecf801a007c6ae12f060adfd6d9fb1d09c358a Mon Sep 17 00:00:00 2001 From: Avielle Wolfe Date: Mon, 9 Sep 2019 19:23:53 -0400 Subject: Remove unnecessary return of object `each_with_object` does this for us. how nice! --- db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb b/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb index 958340a3fb2..4bff2a1aa68 100644 --- a/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb +++ b/db/post_migrate/20190726141000_update_vulnerability_fingerprints.rb @@ -14,8 +14,6 @@ class UpdateVulnerabilityFingerprints < ActiveRecord::Migration[5.2] Occurrence.where_might_have_feedback.find_in_batches(batch_size: 500) do |occurrences| occurrences_with_fingerprints = occurrences.each_with_object({}) do |occurrence, map| map[occurrence.old_fingerprint] = occurrence - - map end Feedback.where(project_fingerprint: occurrences_with_fingerprints.keys).each do |feedback| -- cgit v1.2.1