From e27dc4d5478a518a4a064185c1890677733dac53 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 26 Nov 2019 06:30:53 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in app/controllers/issues_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19318 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index e26bb2a88..8c5a356ae 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -77,9 +77,9 @@ class IssuesController < ApplicationController end else respond_to do |format| - format.html { render :layout => !request.xhr? } - format.any(:atom, :csv, :pdf) { head 422 } - format.api { render_validation_errors(@query) } + format.html {render :layout => !request.xhr?} + format.any(:atom, :csv, :pdf) {head 422} + format.api {render_validation_errors(@query)} end end rescue ActiveRecord::RecordNotFound @@ -128,7 +128,7 @@ class IssuesController < ApplicationController def new respond_to do |format| - format.html { render :action => 'new', :layout => !request.xhr? } + format.html {render :action => 'new', :layout => !request.xhr?} format.js end end @@ -166,7 +166,7 @@ class IssuesController < ApplicationController render :action => 'new' end } - format.api { render_validation_errors(@issue) } + format.api {render_validation_errors(@issue)} end end end @@ -175,7 +175,7 @@ class IssuesController < ApplicationController return unless update_issue_from_params respond_to do |format| - format.html { } + format.html {} format.js end end @@ -209,12 +209,12 @@ class IssuesController < ApplicationController issue_path(@issue, previous_and_next_issue_ids_params) ) } - format.api { render_api_ok } + format.api {render_api_ok} end else respond_to do |format| - format.html { render :action => 'edit' } - format.api { render_validation_errors(@issue) } + format.html {render :action => 'edit'} + format.api {render_validation_errors(@issue)} end end end @@ -273,7 +273,7 @@ class IssuesController < ApplicationController end target_projects ||= @projects - @trackers = target_projects.map {|p| Issue.allowed_target_trackers(p) }.reduce(:&) + @trackers = target_projects.map {|p| Issue.allowed_target_trackers(p)}.reduce(:&) if params[:issue] @target_tracker = @trackers.detect {|t| t.id.to_s == params[:issue][:tracker_id].to_s} if @target_tracker @@ -448,8 +448,8 @@ class IssuesController < ApplicationController end end respond_to do |format| - format.html { redirect_back_or_default _project_issues_path(@project) } - format.api { render_api_ok } + format.html {redirect_back_or_default _project_issues_path(@project)} + format.api {render_api_ok} end end -- 2.39.5