mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
b31b57f82d
commit
97d1bafb93
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user