diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-14 18:11:33 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-14 18:11:33 +0000 |
commit | 799a7091c53c0c4326dd2025dea4e7ab4ca24595 (patch) | |
tree | 4bde0ff1479059221a44ed3bf521498ede933269 /app/models/issue_import.rb | |
parent | 3e3cf4d9936b8887b64d2768d7b661b61e48c2e1 (diff) | |
download | redmine-799a7091c53c0c4326dd2025dea4e7ab4ca24595.tar.gz redmine-799a7091c53c0c4326dd2025dea4e7ab4ca24595.zip |
code cleanup: rubocop: fix Layout/ElseAlignment in app/models/issue_import.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18668 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_import.rb')
-rw-r--r-- | app/models/issue_import.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app/models/issue_import.rb b/app/models/issue_import.rb index 700d659ba..206c0bfd5 100644 --- a/app/models/issue_import.rb +++ b/app/models/issue_import.rb @@ -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 |