aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-15 22:27:30 -0500
committerJack Nagel2013-05-15 22:27:30 -0500
commitdb426025cc988a539c170b397e274529ba499157 (patch)
tree25eb6410784e30fc45931865c6818ff4b38ae412 /Library
parent1614a13cc498b2d7b3bf047017ffa3ba693ee5e3 (diff)
downloadhomebrew-db426025cc988a539c170b397e274529ba499157.tar.bz2
Simplify uninstall --force
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/uninstall.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb
index 6929a49a7..837a1e9f4 100644
--- a/Library/Homebrew/cmd/uninstall.rb
+++ b/Library/Homebrew/cmd/uninstall.rb
@@ -26,10 +26,7 @@ module Homebrew extend self
if rack.directory?
puts "Uninstalling #{name}..."
- rack.subdirs.map { |d| Keg.new(d) }.each do |keg|
- keg.unlink
- keg.rmtree
- end
+ rack.subdirs.each { |d| Keg.new(d).unlink }
rack.rmtree
end