diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 95802d9aa..11c6ad0d1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. 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