Skip to content

Commit

Permalink
cmd/leaves: fix an undefined method error
Browse files Browse the repository at this point in the history
Follow-up to #17168.

Fixes #17199.
  • Loading branch information
ZhongRuoyu committed May 1, 2024
1 parent 542edec commit 0b66879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/leaves.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 47 in Library/Homebrew/cmd/leaves.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/leaves.rb#L47

Added line #L47 was not covered by tests
end
end
end
Expand Down

0 comments on commit 0b66879

Please sign in to comment.