aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorDmitrii Golub <dmitrii.golub@gmail.com>2012-03-28 03:09:40 +0400
committerDmitrii Golub <dmitrii.golub@gmail.com>2012-03-28 03:09:40 +0400
commitba9537c275d5434aff505cdc5d435009715dcc0e (patch)
treeab4880e018d8639844c0885ae35cf95d5ee434f3 /activesupport/lib
parent33164c8f1479b826a044ab90f4cc2439666e4b16 (diff)
downloadrails-ba9537c275d5434aff505cdc5d435009715dcc0e.tar.gz
rails-ba9537c275d5434aff505cdc5d435009715dcc0e.tar.bz2
rails-ba9537c275d5434aff505cdc5d435009715dcc0e.zip
remove redundant variable
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/deep_dup.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/deep_dup.rb b/activesupport/lib/active_support/core_ext/hash/deep_dup.rb
index 447142605c..9ab179c566 100644
--- a/activesupport/lib/active_support/core_ext/hash/deep_dup.rb
+++ b/activesupport/lib/active_support/core_ext/hash/deep_dup.rb
@@ -3,8 +3,7 @@ class Hash
def deep_dup
duplicate = self.dup
duplicate.each_pair do |k,v|
- tv = duplicate[k]
- duplicate[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_dup : v
+ duplicate[k] = v.is_a?(Hash) ? v.deep_dup : v
end
duplicate
end