aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-08-25 09:45:21 +0200
committerBaptiste Fontaine2015-08-25 09:45:21 +0200
commite779be14534299a50d56affada6ab5621c51cb71 (patch)
treec2449643808851492fac6265ef94ad7a3e970076 /Library/Homebrew/cmd/update.rb
parent143709e6797c8c85a9632e46f18d36a7113ce83e (diff)
downloadbrew-e779be14534299a50d56affada6ab5621c51cb71.tar.bz2
update: #each.map is redundant
Diffstat (limited to 'Library/Homebrew/cmd/update.rb')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 33c7c49ae..200f03979 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -56,7 +56,7 @@ module Homebrew
tap_user, tap_repo = migration.split "/"
install_tap tap_user, tap_repo
# update tap for each Tab
- tabs = dir.subdirs.each.map { |d| Tab.for_keg(Keg.new(d)) }
+ tabs = dir.subdirs.map { |d| Tab.for_keg(Keg.new(d)) }
next if tabs.first.source["tap"] != "Homebrew/homebrew"
tabs.each { |tab| tab.source["tap"] = "#{tap_user}/homebrew-#{tap_repo}" }
tabs.each(&:write)