Skip to content
Browse files

remove unused variable assignment

  • Loading branch information...
1 parent 4bd0330 commit 7707728fe72ee3e177c7d6b6746805d6b7f1341f @lest committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formtastic/helpers/fieldset_wrapper.rb
View
2 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 7707728

Please sign in to comment.
Something went wrong with that request. Please try again.