aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-18 14:55:20 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-18 15:52:56 -0800
commit36d66786905b3cc2dda6c48345a89bbd760fcb82 (patch)
tree56a964d7e2f15b8275f7c9cdec2334230e1c15df /activesupport
parent7091d800b80dd5cd06c3a232c5386efc16fda6fb (diff)
downloadrails-36d66786905b3cc2dda6c48345a89bbd760fcb82.tar.gz
rails-36d66786905b3cc2dda6c48345a89bbd760fcb82.tar.bz2
rails-36d66786905b3cc2dda6c48345a89bbd760fcb82.zip
removing usesless variable assignments
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/callbacks.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 32ebea8571..843c688ca9 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -185,7 +185,11 @@ module ActiveSupport
# end
filter = <<-RUBY_EVAL
unless halted
- result = #{@filter}
+ # This double assignment is to prevent warnings in 1.9.3. I would
+ # remove the `result` variable, but apparently some other
+ # generated code is depending on this variable being set sometimes
+ # and sometimes not.
+ result = result = #{@filter}
halted = (#{chain.config[:terminator]})
end
RUBY_EVAL