Skip to content

Commit

Permalink
Run rubocop autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Dec 4, 2023
1 parent 9f8074c commit 228138b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/marc_profiling_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 228138b

Please sign in to comment.