Skip to content
This repository
Browse code

Merge pull request #889 from lest/patch-1

remove unused variable assignment
  • Loading branch information...
commit 521d894a81fa14dbeb50abf5ac3d3a6af84692d4 2 parents 4bd0330 + 7707728
Justin French authored October 08, 2012
2  lib/formtastic/helpers/fieldset_wrapper.rb
@@ -72,7 +72,7 @@ def parent_child_index(parent) #:nodoc:
72 72
         return duck + 1 if duck.is_a?(Fixnum)
73 73
         
74 74
         # First try to extract key from duck Hash, then try child
75  
-        i = (duck[key] || duck[child]).to_i + 1
  75
+        (duck[key] || duck[child]).to_i + 1
76 76
       end
77 77
 
78 78
     end

0 notes on commit 521d894

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