From a83dd7ecd00b556949d60990aff58038664c180e Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 7 Jul 2025 04:29:14 +0300 Subject: [PATCH] Remove sorting before converting tags to hash Sorting is no longer required because we're not comparing arrays of keys. --- test/controllers/api/relations_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers/api/relations_controller_test.rb b/test/controllers/api/relations_controller_test.rb index 3c26715d0..b6610df6e 100644 --- a/test/controllers/api/relations_controller_test.rb +++ b/test/controllers/api/relations_controller_test.rb @@ -1146,7 +1146,7 @@ module Api ## # returns a k->v hash of tags from an xml doc def get_tags_as_hash(a) - a.find("//osm/relation/tag").sort_by { |v| v["k"] }.each_with_object({}) do |v, h| + a.find("//osm/relation/tag").each_with_object({}) do |v, h| h[v["k"]] = v["v"] end end -- 2.39.5