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 examplec08547d
. Later on the return was added in4da4506
, but the trailing literal was left there.
This commit is contained in:
parent
49f9dce5b9
commit
4b80395130
1 changed files with 0 additions and 2 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue