update: #each.map is redundant
This commit is contained in:
parent
143709e679
commit
e779be1453
@ -56,7 +56,7 @@ module Homebrew
|
|||||||
tap_user, tap_repo = migration.split "/"
|
tap_user, tap_repo = migration.split "/"
|
||||||
install_tap tap_user, tap_repo
|
install_tap tap_user, tap_repo
|
||||||
# update tap for each Tab
|
# 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"
|
next if tabs.first.source["tap"] != "Homebrew/homebrew"
|
||||||
tabs.each { |tab| tab.source["tap"] = "#{tap_user}/homebrew-#{tap_repo}" }
|
tabs.each { |tab| tab.source["tap"] = "#{tap_user}/homebrew-#{tap_repo}" }
|
||||||
tabs.each(&:write)
|
tabs.each(&:write)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user