aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-04 19:31:07 -0500
committerJack Nagel2014-07-04 19:40:18 -0500
commit84372e570eb211af82d486b9b9dea5f6ed4ba78e (patch)
treeab17602feb55c88296b7593c4db6df3210ee217d /Library
parent810b5838b21d6151f3ecc137c49b6519b215d327 (diff)
downloadbrew-84372e570eb211af82d486b9b9dea5f6ed4ba78e.tar.bz2
Use a regular conditional instead of `next unless ...`
Diffstat (limited to 'Library')
-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