]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Fix new rubocop warnings
[rails.git] / app / models / node.rb
index 8bfac993b5bd9fdd2d512a4007dfff1304cae2ec..3214564c8e4fbf7c1eb15e75f953e9f187869c41 100644 (file)
@@ -206,7 +206,7 @@ class Node < ApplicationRecord
   end
 
   def tags
-    @tags ||= node_tags.collect { |t| [t.k, t.v] }.to_h
+    @tags ||= node_tags.to_h { |t| [t.k, t.v] }
   end
 
   attr_writer :tags