From: Toshi MARUYAMA Date: Fri, 6 Nov 2020 13:01:00 +0000 (+0000) Subject: use "do end" instead of {} at ImportsController X-Git-Tag: 4.2.0~538 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99914e08885fbc7bde26a606106c56baffb91606;p=redmine.git use "do end" instead of {} at ImportsController git-svn-id: http://svn.redmine.org/redmine/trunk@20279 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rb index d234604f6..54defb855 100644 --- a/app/controllers/imports_controller.rb +++ b/app/controllers/imports_controller.rb @@ -70,13 +70,13 @@ class ImportsController < ApplicationController auto_map_fields elsif request.post? respond_to do |format| - format.html { + format.html do if params[:previous] redirect_to import_settings_path(@import) else redirect_to import_run_path(@import) end - } + end format.js # updates mapping form on project or tracker change end end @@ -89,13 +89,13 @@ class ImportsController < ApplicationController :max_time => 10.seconds ) respond_to do |format| - format.html { + format.html do if @import.finished? redirect_to import_path(@import) else redirect_to import_run_path(@import) end - } + end format.js end end