[openstreetmap/openstreetmap-website] Changeset: avoid XML rendering in loop (PR #5045)
mmd
notifications at github.com
Tue Aug 6 06:00:00 UTC 2024
@mmd-osm 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) || "")
It’s for consistency reasons with the other 10 or so other places where we use the same pattern.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5045#discussion_r1704952260
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5045/review/2220345560 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240805/fdb0bc14/attachment.htm>
More information about the rails-dev
mailing list