]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Fix rubocop style issues
[rails.git] / app / controllers / application_controller.rb
index 5ef50eb3f1d0bd34d6fdbee8ce6f3f735f3af693..3b706966a39a598aa0addeff77bf2c87086d2974 100644 (file)
@@ -255,9 +255,7 @@ class ApplicationController < ActionController::Base
 
   def gpx_status
     status = database_status
-    if status == :online
-      status = :offline if STATUS == :gpx_offline
-    end
+    status = :offline if status == :online && STATUS == :gpx_offline
     status
   end