Skip to content
Snippets Groups Projects
Commit 5247f442 authored by Jack Nagel's avatar Jack Nagel
Browse files

leaves: load tab outside of the inner loop

parent 09b7f40b
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,10 @@ module Homebrew
installed.each do |f|
deps = []
tab = Tab.for_formula(f)
f.deps.each do |dep|
if dep.optional? || dep.recommended?
tab = Tab.for_formula(f)
deps << dep.to_formula.name if tab.with?(dep.to_formula.name)
else
deps << dep.to_formula.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment