Permalink
Browse files

Merge pull request #889 from lest/patch-1

remove unused variable assignment
  • Loading branch information...
justinfrench committed Oct 8, 2012
2 parents 4bd0330 + 7707728 commit 521d894a81fa14dbeb50abf5ac3d3a6af84692d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formtastic/helpers/fieldset_wrapper.rb
@@ -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

0 comments on commit 521d894

Please sign in to comment.