]> git.openstreetmap.org Git - rails.git/blobdiff - lib/diff_reader.rb
Fix rubocop lint issues
[rails.git] / lib / diff_reader.rb
index 89e34550f92b9a9fa67d5b04c086dc90c24bb984..be6fee7bb16700f9cadd81909dd9c74186e303fc 100644 (file)
@@ -238,7 +238,7 @@ class DiffReader
           if action_attributes["if-unused"]
             begin
               old.delete_with_history!(new, @changeset.user)
           if action_attributes["if-unused"]
             begin
               old.delete_with_history!(new, @changeset.user)
-            rescue OSM::APIAlreadyDeletedError, OSM::APIPreconditionFailedError => ex
+            rescue OSM::APIAlreadyDeletedError, OSM::APIPreconditionFailedError
               xml_result["new_id"] = old.id.to_s
               xml_result["new_version"] = old.version.to_s
             end
               xml_result["new_id"] = old.id.to_s
               xml_result["new_version"] = old.version.to_s
             end