aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-08-13 20:34:11 -0500
committerJack Nagel2014-08-13 20:54:49 -0500
commitedbb219bbdcbcab51aa7fce260b4e9afd114739f (patch)
tree6baf29a1dd3bc1ac3903575dd98a15a65cbd18cb
parent2311181b54ef968339923bcf7a214cd110010520 (diff)
downloadbrew-edbb219bbdcbcab51aa7fce260b4e9afd114739f.tar.bz2
More idiomatic way to combine arrays
-rw-r--r--Library/Homebrew/formula_installer.rb3
1 files changed, 1 insertions, 2 deletions
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."