aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/keg.rb
diff options
context:
space:
mode:
authorAlyssa Ross2016-10-25 23:48:34 +0100
committerAlyssa Ross2016-10-25 23:48:34 +0100
commit5a3d6c4c8f8254c8234157c16dbb80c23ffd49b1 (patch)
treec1c7ebbe490803cf6c4c247daa4a5ea927f80b18 /Library/Homebrew/keg.rb
parentd0ad09708218bfbffed4857387b259bceba177c2 (diff)
downloadbrew-5a3d6c4c8f8254c8234157c16dbb80c23ffd49b1.tar.bz2
uninstall, keg: update style
Diffstat (limited to 'Library/Homebrew/keg.rb')
-rw-r--r--Library/Homebrew/keg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index d86236037..ccd3cc2c1 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -104,9 +104,9 @@ class Keg
# so need them to be calculated now.
#
# This happens after the initial dependency check because it's sloooow.
- remaining_formulae = Formula.installed.select { |f|
+ remaining_formulae = Formula.installed.select do |f|
f.installed_kegs.any? { |k| Tab.for_keg(k).runtime_dependencies.nil? }
- }
+ end
keg_names = kegs.map(&:name)
kegs_by_name = kegs.group_by(&:to_formula)