Changeset: avoid XML rendering in loop

This commit is contained in:
mmd-osm 2024-08-04 22:35:48 +02:00
parent fa9654fe90
commit ccdc427a5d

View file

@ -1,7 +1,4 @@
xml.instruct! :xml, :version => "1.0"
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
@changesets.each do |changeset|
osm << render(changeset)
end
osm << (render(@changesets) || "")
end