aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-03-16 08:22:35 +0100
committerXavier Noria <fxn@hashref.com>2016-03-16 08:32:01 +0100
commit4b80395130946094a45279ede9ad6a627ff02b08 (patch)
tree748b4142eac7df88ea4f38c40427d7736d049227 /activesupport/lib/active_support
parent49f9dce5b9686ffe759239cb3b9fba78deae4fcf (diff)
downloadrails-4b80395130946094a45279ede9ad6a627ff02b08.tar.gz
rails-4b80395130946094a45279ede9ad6a627ff02b08.tar.bz2
rails-4b80395130946094a45279ede9ad6a627ff02b08.zip
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.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 4880e5efd8..7c681092fa 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -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).