mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-30 12:19:38 +00:00
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
This commit is contained in:
parent
3e3cf4d993
commit
799a7091c5
@ -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'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user