]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of ProjectsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:10 +0000 (12:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:10 +0000 (12:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20356 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index ad75be5bf300f7556536eb95808f467612a5debc..7730f51b476a37eb53d8da043c8e250662babb77 100644 (file)
@@ -275,7 +275,11 @@ class ProjectsController < ApplicationController
     if api_request? || params[:confirm]
       @project_to_destroy.destroy
       respond_to do |format|
-        format.html { redirect_to User.current.admin? ? admin_projects_path : projects_path }
+        format.html do
+          redirect_to(
+            User.current.admin? ? admin_projects_path : projects_path
+          )
+        end
         format.api  { render_api_ok }
       end
     end