Use a regular conditional instead of next unless ...
This commit is contained in:
parent
810b5838b2
commit
84372e570e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user