Skip to content

Commit

Permalink
Remove unneeded to_a
Browse files Browse the repository at this point in the history
  • Loading branch information
mnovelo committed Jan 18, 2024
1 parent 9766bd7 commit 3c649ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/throttled/patches/super_fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def requeue_throttled(work)
# @return [Array<Array(String, String)>]
def active_queues
# Create a hash of throttled queues for fast lookup
throttled_queues = Throttled.cooldown&.queues.to_a.to_h { |queue| [queue, true] }
throttled_queues = Throttled.cooldown&.queues.to_h { |queue| [queue, true] }
return super if throttled_queues.empty?

# Reject throttled queues from the list of active queues
Expand Down

0 comments on commit 3c649ed

Please sign in to comment.