From edbb219bbdcbcab51aa7fce260b4e9afd114739f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 13 Aug 2014 20:34:11 -0500 Subject: More idiomatic way to combine arrays --- Library/Homebrew/formula_installer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e7cd7d938..98711719a 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -216,8 +216,7 @@ class FormulaInstaller check_requirements(req_map) - deps = [].concat(req_deps).concat(f.deps) - deps = expand_dependencies(deps) + deps = expand_dependencies(req_deps + f.deps) if deps.empty? and only_deps? puts "All dependencies for #{f} are satisfied." -- cgit v1.2.3