cmd/leaves: fix an undefined method error

Follow-up to #17168.

Fixes #17199.
This commit is contained in:
Ruoyu Zhong 2024-05-02 01:07:29 +08:00
parent 542edec0ff
commit 0b668797ec
No known key found for this signature in database

View File

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