trying to remove FormulaInstaller.installed to formulae

This commit is contained in:
thibhero 2025-06-17 19:20:43 -04:00
parent d525e25e99
commit 8c203df671

View File

@ -285,11 +285,7 @@ module Homebrew
end end
return return
end end
installed_formulae = if dry_run || ask installed_formulae = formulae.dup
formulae.dup
else
FormulaInstaller.installed.to_a.dup
end
installed_formulae.reject! { |f| f.core_formula? && f.versioned_formula? } installed_formulae.reject! { |f| f.core_formula? && f.versioned_formula? }
return if installed_formulae.empty? return if installed_formulae.empty?