aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-07-04 19:31:07 -0500
committerJack Nagel2014-07-04 19:40:18 -0500
commit9ac7f0c0eff4311553c06855375a47c0d8302303 (patch)
tree850b2b3c190c78aa3fda7bb0f03edb9415fc2042
parent1af5eb06b3ba81756bde672f781a17e64cf05617 (diff)
downloadhomebrew-9ac7f0c0eff4311553c06855375a47c0d8302303.tar.bz2
Use a regular conditional instead of `next unless ...`
-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