# 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'
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