]> git.openstreetmap.org Git - rails.git/blobdiff - lib/diff_reader.rb
Update rss.rss.builder
[rails.git] / lib / diff_reader.rb
index 3ec4f146ad883a7b355231fc8b7a248cc7e13e81..6ffe3806a3a8c6925441f4ce8b0f6418494cb665 100644 (file)
@@ -57,7 +57,7 @@ class DiffReader
         # care of that for us.
         if @reader.node_type == 1 # element
           name = @reader.name
-          attributes =  {}
+          attributes = {}
 
           if @reader.has_attributes?
             while @reader.move_to_next_attribute == 1
@@ -124,8 +124,7 @@ class DiffReader
   # an exception subclassing OSM::APIError will be thrown.
   def commit
     # data structure used for mapping placeholder IDs to real IDs
-    node_ids, way_ids, rel_ids = {}, {}, {}
-    ids = { :node => node_ids, :way => way_ids, :relation => rel_ids }
+    ids = { :node => {}, :way => {}, :relation => {} }
 
     # take the first element and check that it is an osmChange element
     @reader.read