From 146212c5eb782c32a457c9d802f7f39296ed2c42 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Fri, 25 Oct 2024 03:06:16 +0800 Subject: [PATCH] brew tc --fix --- Library/Homebrew/dev-cmd/extract.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/extract.rb b/Library/Homebrew/dev-cmd/extract.rb index 48d6e3ac1f09c..d186d4f0d1ced 100644 --- a/Library/Homebrew/dev-cmd/extract.rb +++ b/Library/Homebrew/dev-cmd/extract.rb @@ -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 @@ -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