]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ElseAlignment in app/models/issue_import.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 18:11:33 +0000 (18:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 18:11:33 +0000 (18:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18668 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/issue_import.rb

index 3e2009b2eea74e4fb2730e606da64dd44f3f7a32..06a44db853547295e090fa563b50ce4d048951f3 100644 (file)
@@ -72,7 +72,6 @@ Layout/BlockEndNewline:
 # SupportedStyles: case, end
 Layout/CaseIndentation:
   Exclude:
-    - 'app/models/issue_import.rb'
     - 'app/models/issue_priority.rb'
     - 'app/models/issue_query.rb'
     - 'config/initializers/10-patches.rb'
index 700d659ba656e606bcc17410763655d5eaa7e1fe..206c0bfd56ed1a6e98fc1f91c40050c3843f759b 100644 (file)
@@ -191,12 +191,13 @@ class IssueImport < Import
     end
 
     attributes['custom_field_values'] = issue.custom_field_values.inject({}) do |h, v|
-      value = case v.custom_field.field_format
-      when 'date'
-        row_date(row, "cf_#{v.custom_field.id}")
-      else
-        row_value(row, "cf_#{v.custom_field.id}")
-      end
+      value =
+        case v.custom_field.field_format
+        when 'date'
+          row_date(row, "cf_#{v.custom_field.id}")
+        else
+          row_value(row, "cf_#{v.custom_field.id}")
+        end
       if value
         h[v.custom_field.id.to_s] = v.custom_field.value_from_keyword(value, issue)
       end