From 228138bac89ef40db26ac2f883defa0bc598eacb Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Mon, 4 Dec 2023 08:28:10 -0500 Subject: [PATCH] Run rubocop autocorrect --- app/jobs/marc_profiling_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/marc_profiling_job.rb b/app/jobs/marc_profiling_job.rb index e14ef652..9dbe8194 100644 --- a/app/jobs/marc_profiling_job.rb +++ b/app/jobs/marc_profiling_job.rb @@ -22,8 +22,8 @@ def add(item) @sample[j] = [@size_so_far, item] if @wanted > j end - def each - @sample.sort.each { |_idx, it| yield(it) } + def each(&block) + @sample.sort.each_value(&block) end end