Skip to content

Commit

Permalink
Add rubocop:disable Style/HashEachMethods comment
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Dec 4, 2023
1 parent 837965d commit 01b43b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/marc_profiling_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 01b43b1

Please sign in to comment.