]> git.openstreetmap.org Git - rails.git/commitdiff
Changeset: avoid XML rendering in loop
authormmd-osm <mmd.osm@gmail.com>
Sun, 4 Aug 2024 20:35:48 +0000 (22:35 +0200)
committermmd-osm <mmd.osm@gmail.com>
Sun, 4 Aug 2024 20:35:48 +0000 (22:35 +0200)
app/views/api/changesets/index.xml.builder

index 5ff7e262044032609666cd2deeada933bb917fb6..286f50c357cd8e1af8678dd5a0544014cb1f0c50 100644 (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