1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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 c08547d.
Later on the return was added in 4da4506, but the trailing
literal was left there.
This commit is contained in:
Xavier Noria 2016-03-16 08:22:35 +01:00
parent 49f9dce5b9
commit 4b80395130

View file

@ -668,8 +668,6 @@ module ActiveSupport #:nodoc:
new_constants.each { |c| remove_constant(c) }.clear
end
[]
end
# Convert the provided const desc to a qualified constant name (as a string).