leaves: load tab outside of the inner loop
This commit is contained in:
		
							parent
							
								
									09b7f40b25
								
							
						
					
					
						commit
						5247f44205
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user