From: Toshi MARUYAMA Date: Tue, 26 Nov 2019 06:30:42 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceInsideHashLiteralBraces in app/controllers/issues_c... X-Git-Tag: 4.2.0~1323 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ee394e97ab081117d4205c59e9faff8508deeb2;p=redmine.git cleanup: rubocop: fix Layout/SpaceInsideHashLiteralBraces in app/controllers/issues_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19317 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 3abf3b988..e26bb2a88 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -138,10 +138,10 @@ class IssuesController < ApplicationController raise ::Unauthorized end - call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue }) + call_hook(:controller_issues_new_before_save, {:params => params, :issue => @issue}) @issue.save_attachments(params[:attachments] || (params[:issue] && params[:issue][:uploads])) if @issue.save - call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) + call_hook(:controller_issues_new_after_save, {:params => params, :issue => @issue}) respond_to do |format| format.html { render_attachment_warning_if_needed(@issue) @@ -377,7 +377,7 @@ class IssuesController < ApplicationController end journal = issue.init_journal(User.current, params[:notes]) issue.safe_attributes = attributes - call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue }) + call_hook(:controller_issues_bulk_edit_before_save, {:params => params, :issue => issue}) if issue.save saved_issues << issue else