]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Fix Lint/DuplicateBranch rubocop warnings
[rails.git] / app / controllers / api_controller.rb
index a138976409bba94bb259fbc1caac61935aa1f325..2d8d51dd8507719f653228b39e358a6c86b6e72c 100644 (file)
@@ -31,9 +31,8 @@ class ApiController < ApplicationController
         # as XML for backwards compatibility - all other formats are discarded
         # which will result in a 406 Not Acceptable response being sent
         formats = mimetypes.map do |mime|
-          if mime.symbol == :xml then :xml
+          if mime.symbol == :xml || mime == "*/*" then :xml
           elsif mime.symbol == :json then :json
-          elsif mime == "*/*" then :xml
           end
         end
       else