summaryrefslogtreecommitdiffstats
path: root/app/controllers/files_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 11:53:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 11:53:59 +0000
commit97d1bafb93a73183cd64ea99ea5ad97850d67cac (patch)
tree2618c1703ea57aa7eda310669e918346cff9bff8 /app/controllers/files_controller.rb
parentb31b57f82d10e6f19c04dfa38a98a57d772dca1b (diff)
downloadredmine-97d1bafb93a73183cd64ea99ea5ad97850d67cac.tar.gz
redmine-97d1bafb93a73183cd64ea99ea5ad97850d67cac.zip
cleanup: rubocop: fix Layout/BlockEndNewline in app/controllers/files_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19010 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/files_controller.rb')
-rw-r--r--app/controllers/files_controller.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb
index 5700cd81c..00b0dca15 100644
--- a/app/controllers/files_controller.rb
+++ b/app/controllers/files_controller.rb
@@ -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