Skip to content

Commit

Permalink
Fix Style/ArgumentsForwarding RuboCop offenses for Ruby 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 authored Dec 14, 2023
1 parent cde7acb commit 74d8a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def freeze
super
end

def each(*args, &block)
@options.each(*args, &block)
def each(...)
@options.each(...)
end

def <<(other)
Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/style.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ def for_path(path)
@offenses.fetch(Pathname(path), [])
end

def each(*args, &block)
@offenses.each(*args, &block)
def each(...)
@offenses.each(...)
end
end

Expand Down

0 comments on commit 74d8a9c

Please sign in to comment.