]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Handle new rubocop warnings
[rails.git] / app / controllers / users_controller.rb
index ed9c124b14b2b1983dee504132f7e69e612152d8..b3596b376634d84341046ad304d56b550f48b57a 100644 (file)
@@ -616,13 +616,13 @@ class UsersController < ApplicationController
     user.languages = params[:user][:languages].split(",")
 
     case params[:avatar_action]
-    when "new" then
+    when "new"
       user.avatar.attach(params[:user][:avatar])
       user.image_use_gravatar = false
-    when "delete" then
+    when "delete"
       user.avatar.purge_later
       user.image_use_gravatar = false
-    when "gravatar" then
+    when "gravatar"
       user.avatar.purge_later
       user.image_use_gravatar = true
     end