aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2015-08-24 19:35:57 -0700
committerMisty De Meo2015-08-24 19:36:24 -0700
commitcb154116c551c68f8ae0533ae9fa35ba3e903599 (patch)
treea8ae5abe53c9ea7135779c2302994639183a4f85 /Library
parent4714818bdf57de83f6a561581a1484ba34806ecb (diff)
downloadbrew-cb154116c551c68f8ae0533ae9fa35ba3e903599.tar.bz2
migrator: #each.map is redundant
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/migrator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb
index da76f4050..2b1d437f8 100644
--- a/Library/Homebrew/migrator.rb
+++ b/Library/Homebrew/migrator.rb
@@ -62,7 +62,7 @@ class Migrator
@oldpath = HOMEBREW_CELLAR/formula.oldname
raise MigratorNoOldpathError.new(formula) unless oldpath.exist?
- @old_tabs = oldpath.subdirs.each.map { |d| Tab.for_keg(Keg.new(d)) }
+ @old_tabs = oldpath.subdirs.map { |d| Tab.for_keg(Keg.new(d)) }
@old_tap = old_tabs.first.tap
if !ARGV.force? && !from_same_taps?