edit: review fixes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
		
							parent
							
								
									a0e68613f5
								
							
						
					
					
						commit
						7523daaf33
					
				@ -64,18 +64,14 @@ module Homebrew
 | 
				
			|||||||
        exec_editor(*paths)
 | 
					        exec_editor(*paths)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        is_formula = T.let(false, T::Boolean)
 | 
					        is_formula = T.let(false, T::Boolean)
 | 
				
			||||||
        is_cask = T.let(false, T::Boolean)
 | 
					 | 
				
			||||||
        is_tap = T.let(false, T::Boolean)
 | 
					 | 
				
			||||||
        if paths.any? do |path|
 | 
					        if paths.any? do |path|
 | 
				
			||||||
             next if path == "--project"
 | 
					             next if path == "--project"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
             is_formula = core_formula_path?(path)
 | 
					             break if Homebrew::EnvConfig.no_install_from_api?
 | 
				
			||||||
             is_cask = core_cask_path?(path)
 | 
					             break if Homebrew::EnvConfig.no_env_hints?
 | 
				
			||||||
             is_tap = core_formula_tap?(path) || core_cask_tap?(path)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
             !Homebrew::EnvConfig.no_install_from_api? &&
 | 
					             is_formula = core_formula_path?(path)
 | 
				
			||||||
             !Homebrew::EnvConfig.no_env_hints? &&
 | 
					             (is_formula || core_cask_path?(path) || core_formula_tap?(path) || core_cask_tap?(path))
 | 
				
			||||||
             (is_formula || is_cask || is_tap)
 | 
					 | 
				
			||||||
           end
 | 
					           end
 | 
				
			||||||
          from_source = " --build-from-source" if is_formula
 | 
					          from_source = " --build-from-source" if is_formula
 | 
				
			||||||
          puts <<~EOS
 | 
					          puts <<~EOS
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user