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

app/controllers/files_controller.rb

index 1301b61359873a210809abe02de4443f4bfaf650..fe81f10c34f7ca4b255c0685682514459f3ae2ab 100644 (file)
@@ -60,19 +60,19 @@ class FilesController < ApplicationController
         Mailer.deliver_attachments_added(attachments[:files])
       end
       respond_to do |format|
-        format.html {
+        format.html do
           flash[:notice] = l(:label_file_added)
           redirect_to project_files_path(@project)
-        }
+        end
         format.api { render_api_ok }
       end
     else
       respond_to do |format|
-        format.html {
+        format.html do
           flash.now[:error] = l(:label_attachment) + " " + l('activerecord.errors.messages.invalid')
           new
           render :action => 'new'
-        }
+        end
         format.api { render :status => :bad_request }
       end
     end