standalone/init: cleanup respond_to? check

This commit is contained in:
Bo Anderson 2025-05-02 01:40:13 +01:00
parent 080ade602a
commit dbf180cb89
No known key found for this signature in database

View File

@ -24,8 +24,7 @@ else
vendored_versions.include?("#{ruby_major}.#{ruby_minor}") vendored_versions.include?("#{ruby_major}.#{ruby_minor}")
end.freeze end.freeze
# TODO(odeprecated): remove `respond_to?` check when required Ruby >= 3.4 if ENV["HOMEBREW_DEVELOPER"]
if ENV["HOMEBREW_DEVELOPER"] && Warning.respond_to?(:categories)
Warning.categories.each do |category| Warning.categories.each do |category|
Warning[category] = true Warning[category] = true
end end