Merge pull request #17200 from Homebrew/brew-leaves-fix

cmd/leaves: fix an `undefined method` error
This commit is contained in:
Ruoyu Zhong 2024-05-02 01:34:43 +08:00 committed by GitHub
commit e60e035731
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ module Homebrew
end end
def installed_as_dependency?(formula) def installed_as_dependency?(formula)
formula.any_installed_keg.installed_as_dependency formula.any_installed_keg.tab.installed_as_dependency
end end
end end
end end