aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/prune.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 22:54:43 -0600
committerJack Nagel2013-02-18 12:13:36 -0600
commit4d341f2115661b3e88589d91b5df74c9d889b778 (patch)
tree99ec33a9e576555457b5cef9637688a9cb5ef0e5 /Library/Homebrew/cmd/prune.rb
parent33393a2597916d8e73009dd981dfcb07ea669434 (diff)
downloadhomebrew-4d341f2115661b3e88589d91b5df74c9d889b778.tar.bz2
Don't shadow outer local variables
Diffstat (limited to 'Library/Homebrew/cmd/prune.rb')
-rw-r--r--Library/Homebrew/cmd/prune.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/prune.rb b/Library/Homebrew/cmd/prune.rb
index 29e57ee3e..e2c4ef310 100644
--- a/Library/Homebrew/cmd/prune.rb
+++ b/Library/Homebrew/cmd/prune.rb
@@ -9,9 +9,9 @@ module Homebrew extend self
$d = 0
dirs = []
- Keg::PRUNEABLE_DIRECTORIES.each do |path|
- next unless path.directory?
- path.find do |path|
+ Keg::PRUNEABLE_DIRECTORIES.each do |dir|
+ next unless dir.directory?
+ dir.find do |path|
path.extend ObserverPathnameExtension
if path.symlink?
unless path.resolved_path_exists?