]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/add_version_to_nodes.rake
Fix rubocop style issues
[rails.git] / lib / tasks / add_version_to_nodes.rake
index c0fac49b70768f3c10c83148ca6cb17d7c94cd13..f86961904db1b70eaf3d7769e9e3e3572696a06c 100644 (file)
@@ -12,9 +12,7 @@ namespace 'db' do
 
       # should be offsetting not selecting
       OldNode.find(:all, :limit => increment, :offset => offset, :order => 'timestamp').each do |node|
-        if hash[node.id].nil?
-          hash[node.id] = []
-        end
+        hash[node.id] ||= []
         hash[node.id] << node
       end