mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
standalone/init: cleanup respond_to? check
This commit is contained in:
parent
080ade602a
commit
dbf180cb89
@ -24,8 +24,7 @@ else
|
||||
vendored_versions.include?("#{ruby_major}.#{ruby_minor}")
|
||||
end.freeze
|
||||
|
||||
# TODO(odeprecated): remove `respond_to?` check when required Ruby >= 3.4
|
||||
if ENV["HOMEBREW_DEVELOPER"] && Warning.respond_to?(:categories)
|
||||
if ENV["HOMEBREW_DEVELOPER"]
|
||||
Warning.categories.each do |category|
|
||||
Warning[category] = true
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user