From 01b43b156317c6773296fa4f9f820cf5a30fcc3f Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Mon, 4 Dec 2023 08:41:09 -0500 Subject: [PATCH] Add rubocop:disable Style/HashEachMethods comment --- app/jobs/marc_profiling_job.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/marc_profiling_job.rb b/app/jobs/marc_profiling_job.rb index e14ef652..b628a2d0 100644 --- a/app/jobs/marc_profiling_job.rb +++ b/app/jobs/marc_profiling_job.rb @@ -22,9 +22,11 @@ def add(item) @sample[j] = [@size_so_far, item] if @wanted > j end + # rubocop:disable Style/HashEachMethods def each @sample.sort.each { |_idx, it| yield(it) } end + # rubocop:enable Style/HashEachMethods end # Tally up some statistics about the MARC records in the file: