[openstreetmap/openstreetmap-website] Changeset: avoid XML rendering in loop (PR #5045)

Anton Khorev notifications at github.com
Tue Aug 6 15:00:08 UTC 2024


@AntonKhorev commented on this pull request.



>  xml.osm(OSM::API.new.xml_root_attributes) do |osm|
-  @changesets.each do |changeset|
-    osm << render(changeset)
-  end
+  osm << (render(@changesets) || "")

But is it required in any of those places?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5045#discussion_r1705696016
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5045/review/2221566048 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240806/8358d1b5/attachment.htm>


More information about the rails-dev mailing list