提交 4b803951 编写于 作者: X Xavier Noria

removes unreachable code

This array literal cannot be reached. The previous begin either
returns to the caller via the explicit return in the ensure
block if all goes well, or else propagates whatever make the
begin block abort execution.

I have investigated the origin of this a bit. In the past the
ensure block didn't have a return call, see for example c08547d2.
Later on the return was added in 4da45060, but the trailing
literal was left there.
上级 49f9dce5
......@@ -668,8 +668,6 @@ def new_constants_in(*descs)
new_constants.each { |c| remove_constant(c) }.clear
end
[]
end
# Convert the provided const desc to a qualified constant name (as a string).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册