]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at WatchersController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:41:44 +0000 (13:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:41:44 +0000 (13:41 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20258 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/watchers_controller.rb

index 567d61f0c38e5fcfc25c0e63997a39914343c5a8..645e60fe2709dcfe8dc0dfb304549e2d72f73d39 100644 (file)
@@ -111,10 +111,10 @@ class WatchersController < ApplicationController
       watchable.set_watcher(user, watching)
     end
     respond_to do |format|
-      format.html {
+      format.html do
         text = watching ? 'Watcher added.' : 'Watcher removed.'
         redirect_to_referer_or {render :html => text, :status => 200, :layout => true}
-      }
+      end
       format.js { render :partial => 'set_watcher', :locals => {:user => user, :watched => watchables} }
     end
   end