]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/BlockEndNewline in app/controllers/files_controller.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 11:53:59 +0000 (11:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 11:53:59 +0000 (11:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19010 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/controllers/files_controller.rb

index 95802d9aa770755b8d65ca7c9926cb68a8f65351..11c6ad0d1d73e9ebc868404cb9b6a22ffb1efcd3 100644 (file)
@@ -24,7 +24,6 @@ Layout/BlockAlignment:
 # Cop supports --auto-correct.
 Layout/BlockEndNewline:
   Exclude:
-    - 'app/controllers/files_controller.rb'
     - 'app/models/message.rb'
 
 # Cop supports --auto-correct.
index 5700cd81ca725cd311ac0dc84c341be3d8792b52..00b0dca15c02fbeda804002a3a98f6ecbe9173ad 100644 (file)
@@ -62,7 +62,8 @@ class FilesController < ApplicationController
       respond_to do |format|
         format.html {
           flash[:notice] = l(:label_file_added)
-          redirect_to project_files_path(@project) }
+          redirect_to project_files_path(@project)
+        }
         format.api { render_api_ok }
       end
     else
@@ -70,7 +71,8 @@ class FilesController < ApplicationController
         format.html {
           flash.now[:error] = l(:label_attachment) + " " + l('activerecord.errors.messages.invalid')
           new
-          render :action => 'new' }
+          render :action => 'new'
+        }
         format.api { render :status => :bad_request }
       end
     end