Skip to content

Commit

Permalink
lint: Simplify args proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Jan 16, 2024
1 parent ff43b39 commit 02704ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/sidekiq/throttled/strategy_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def initialize(strategies, strategy:, name:, key_suffix:)

# @param [#call] block
# Iterates each strategy in collection
def each(&block)
@strategies.each(&block)
def each(...)
@strategies.each(...)
end

# @return [Boolean] whenever any strategy in collection has dynamic config
Expand All @@ -37,14 +37,14 @@ def dynamic?

# @return [Boolean] whenever job is throttled or not
# by any strategy in collection.
def throttled?(*args)
any? { |s| s.throttled?(*args) }
def throttled?(...)
any? { |s| s.throttled?(...) }
end

# Marks job as being processed.
# @return [void]
def finalize!(*args)
each { |c| c.finalize!(*args) }
def finalize!(...)
each { |c| c.finalize!(...) }
end

# Resets count of jobs of all avaliable strategies
Expand Down

0 comments on commit 02704ab

Please sign in to comment.