]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / api_controller.rb
index 478810dfc21d40448410662adf82179a2e0d60be..c905b24ce8c9b890facb97c9951b7f107813765a 100644 (file)
@@ -22,10 +22,10 @@ class ApiController < ApplicationController
         #
         # As a workaround, and for back compatibility, default to XML format.
         mimetypes = begin
-                      Mime::Type.parse(accept_header)
-                    rescue Mime::Type::InvalidMimeType
-                      Array(Mime[:xml])
-                    end
+          Mime::Type.parse(accept_header)
+        rescue Mime::Type::InvalidMimeType
+          Array(Mime[:xml])
+        end
 
         # Allow XML and JSON formats, and treat an all formats wildcard
         # as XML for backwards compatibility - all other formats are discarded