]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to ImportsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Nov 2020 14:55:50 +0000 (14:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Nov 2020 14:55:50 +0000 (14:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20236 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/imports_controller.rb

index ed42342ce1d2dba3ded63868a8c2ce46e4d3716e..d234604f69efba7f4b7aefce18fa497cb705c533 100644 (file)
@@ -179,6 +179,7 @@ class ImportsController < ApplicationController
     # Core fields
     import_type::AUTO_MAPPABLE_FIELDS.each do |field_nm, label_nm|
       next if mappings.include?(field_nm)
+
       index = headers.index(field_nm) || headers.index(l(label_nm).downcase)
       if index
         mappings[field_nm] = index
@@ -189,6 +190,7 @@ class ImportsController < ApplicationController
     @custom_fields.each do |field|
       field_nm = "cf_#{field.id}"
       next if mappings.include?(field_nm)
+
       index = headers.index(field_nm) || headers.index(field.name.downcase)
       if index
         mappings[field_nm] = index