From 84372e570eb211af82d486b9b9dea5f6ed4ba78e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 4 Jul 2014 19:31:07 -0500 Subject: [PATCH] Use a regular conditional instead of `next unless ...` --- Library/Homebrew/keg.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 6776335b7b..6a00ed16b1 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