@hlfan commented on this pull request.
> @@ -0,0 +1,19 @@
+module MapLayers
+ def self.full_definitions(layers_filename)
+ YAML.load_file(Rails.root.join(layers_filename)).filter_map do |layer|
I understood it as the `next` in line 5 makes it returns `nil`, and therefore
the `filter_map`.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5809#discussion_r1997652523
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5809/review/2688736...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev