aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/keg.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/keg.rb')
-rw-r--r--Library/Homebrew/keg.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 6776335b7..6a00ed16b 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -192,11 +192,11 @@ class Keg
dirs << dst if dst.directory? && !dst.symlink?
# check whether the file to be unlinked is from the current keg first
- next unless dst.symlink? && src == dst.resolved_path
-
- dst.uninstall_info if dst.to_s =~ INFOFILE_RX
- dst.unlink
- Find.prune if src.directory?
+ if dst.symlink? && src == dst.resolved_path
+ dst.uninstall_info if dst.to_s =~ INFOFILE_RX
+ dst.unlink
+ Find.prune if src.directory?
+ end
end
end