From b4cc30ec17891634ef7e4284e8f520c3b0dd46f0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 19 Nov 2020 13:31:02 +0000 Subject: [PATCH] remove spaces inside {} of FilesController git-svn-id: http://svn.redmine.org/redmine/trunk@20437 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/files_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index fe81f10c3..eacc70b36 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -40,7 +40,7 @@ class FilesController < ApplicationController @containers += @project.versions.includes(:attachments). references(:attachments).reorder(sort_clause).to_a.sort.reverse respond_to do |format| - format.html { render :layout => !request.xhr? } + format.html {render :layout => !request.xhr?} format.api end end @@ -64,7 +64,7 @@ class FilesController < ApplicationController flash[:notice] = l(:label_file_added) redirect_to project_files_path(@project) end - format.api { render_api_ok } + format.api {render_api_ok} end else respond_to do |format| @@ -73,7 +73,7 @@ class FilesController < ApplicationController new render :action => 'new' end - format.api { render :status => :bad_request } + format.api {render :status => :bad_request} end end end -- 2.39.5