remove unused variable assignment #889

Merged
merged 1 commit into from Oct 8, 2012
@@ -72,7 +72,7 @@ def parent_child_index(parent) #:nodoc:
return duck + 1 if duck.is_a?(Fixnum)
# First try to extract key from duck Hash, then try child
- i = (duck[key] || duck[child]).to_i + 1
+ (duck[key] || duck[child]).to_i + 1
end
end