aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-08-13 20:34:11 -0500
committerJack Nagel2014-08-13 20:54:49 -0500
commit4ec30859e1d9f15eda1e61e1bc115c6795c93c8f (patch)
treee179a8e79afcee678379ea9846ce38a1e3487d56 /Library/Homebrew
parentc913c7bdbba74ac9e64e03f45ad80bbfbfb8a8e8 (diff)
downloadhomebrew-4ec30859e1d9f15eda1e61e1bc115c6795c93c8f.tar.bz2
More idiomatic way to combine arrays
Diffstat (limited to 'Library/Homebrew')
-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."