Skip to content

Commit

Permalink
brew tc --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Oct 24, 2024
1 parent 32a4a06 commit 146212c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Library/Homebrew/dev-cmd/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,21 +176,21 @@ def with_monkey_patch
# Since `method_defined?` is not a supported type guard, the use of `alias_method` below is not typesafe:
BottleSpecification.class_eval do
T.unsafe(self).alias_method :old_method_missing, :method_missing if method_defined?(:method_missing)
define_method(:method_missing) do |*|
define_method(:method_missing) do |*_|
# do nothing
end
end

Module.class_eval do
T.unsafe(self).alias_method :old_method_missing, :method_missing if method_defined?(:method_missing)
define_method(:method_missing) do |*|
define_method(:method_missing) do |*_|
# do nothing
end
end

Resource.class_eval do
T.unsafe(self).alias_method :old_method_missing, :method_missing if method_defined?(:method_missing)
define_method(:method_missing) do |*|
define_method(:method_missing) do |*_|
# do nothing
end
end
Expand All @@ -200,7 +200,7 @@ def with_monkey_patch
T.unsafe(self).alias_method :old_parse_symbol_spec,
:parse_symbol_spec
end
define_method(:parse_symbol_spec) do |*|
define_method(:parse_symbol_spec) do |*_|
# do nothing
end
end
Expand Down

0 comments on commit 146212c

Please sign in to comment.