Skip to content

Commit

Permalink
Fix new Style/ArgumentsForwarding offenses.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis authored and bbatsov committed Dec 19, 2023
1 parent 626894b commit 1b3c31b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/rubocop/cop/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ def sort!
self
end

def select(&block)
cops.select(&block)
def select(...)
cops.select(...)
end

def each(&block)
cops.each(&block)
def each(...)
cops.each(...)
end

# @param [String] cop_name
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/style/parallel_assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def initialize(assignments)
@assignments = assignments
end

def tsort_each_node(&block)
@assignments.each(&block)
def tsort_each_node(...)
@assignments.each(...)
end

def tsort_each_child(assignment)
Expand Down

0 comments on commit 1b3c31b

Please sign in to comment.