From 0b668797ec85defc7ec26d73500d5868b1e933a1 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Thu, 2 May 2024 01:07:29 +0800 Subject: [PATCH] cmd/leaves: fix an `undefined method` error Follow-up to #17168. Fixes #17199. --- Library/Homebrew/cmd/leaves.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/leaves.rb b/Library/Homebrew/cmd/leaves.rb index d7f1292e521d3..b8b0061505965 100644 --- a/Library/Homebrew/cmd/leaves.rb +++ b/Library/Homebrew/cmd/leaves.rb @@ -44,7 +44,7 @@ def installed_on_request?(formula) end def installed_as_dependency?(formula) - formula.any_installed_keg.installed_as_dependency + formula.any_installed_keg.tab.installed_as_dependency end end end