Permalink
Browse files

remove redundant variable

  • Loading branch information...
1 parent 33164c8 commit ba9537c275d5434aff505cdc5d435009715dcc0e @Houdini Houdini committed Mar 27, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit ba9537c

Please sign in to comment.