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?
|
dirs << dst if dst.directory? && !dst.symlink?
|
||||||
|
|
||||||
# check whether the file to be unlinked is from the current keg first
|
# check whether the file to be unlinked is from the current keg first
|
||||||
next unless dst.symlink? && src == dst.resolved_path
|
if dst.symlink? && src == dst.resolved_path
|
||||||
|
dst.uninstall_info if dst.to_s =~ INFOFILE_RX
|
||||||
dst.uninstall_info if dst.to_s =~ INFOFILE_RX
|
dst.unlink
|
||||||
dst.unlink
|
Find.prune if src.directory?
|
||||||
Find.prune if src.directory?
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user