Fixing indentation
This commit is contained in:
parent
0c2d503f1e
commit
b8a7d956bf
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ class Node < GeoRecord
|
|||
doc = p.parse
|
||||
|
||||
doc.find('//osm/node').each do |pt|
|
||||
return Node.from_xml_node(pt, create)
|
||||
return Node.from_xml_node(pt, create)
|
||||
end
|
||||
rescue
|
||||
return nil
|
||||
|
@ -75,7 +75,7 @@ class Node < GeoRecord
|
|||
|
||||
unless create
|
||||
if pt['id'] != '0'
|
||||
node.id = pt['id'].to_i
|
||||
node.id = pt['id'].to_i
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -85,7 +85,7 @@ class Node < GeoRecord
|
|||
node.timestamp = Time.now
|
||||
else
|
||||
if pt['timestamp']
|
||||
node.timestamp = Time.parse(pt['timestamp'])
|
||||
node.timestamp = Time.parse(pt['timestamp'])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue