From 17600eb435693f333af46912fd796fcdff5657b2 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 20 Jul 2010 00:03:20 +0800 Subject: Remove unused orig_handler and unneeded parentheses --- actionpack/lib/action_controller/metal/rescue.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_controller/metal/rescue.rb') diff --git a/actionpack/lib/action_controller/metal/rescue.rb b/actionpack/lib/action_controller/metal/rescue.rb index cc2b020e03..eb037aa1b0 100644 --- a/actionpack/lib/action_controller/metal/rescue.rb +++ b/actionpack/lib/action_controller/metal/rescue.rb @@ -4,9 +4,9 @@ module ActionController #:nodoc: include ActiveSupport::Rescuable def rescue_with_handler(exception) - if ((exception.respond_to?(:original_exception)) && - (orig_exception = exception.original_exception) && - (orig_handler = handler_for_rescue(orig_exception))) + if (exception.respond_to?(:original_exception) && + (orig_exception = exception.original_exception) && + handler_for_rescue(orig_exception)) exception = orig_exception end super(exception) -- cgit v1.2.3