code cleanup: rubocop: fix Layout/IndentAssignment in app/helpers/issues_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18479 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-09-19 06:11:15 +00:00
parent 5611ee0e02
commit aa8c59a389
2 changed files with 3 additions and 6 deletions

View File

@@ -248,7 +248,6 @@ Layout/ExtraSpacing:
Layout/IndentAssignment:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/issues_helper.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- 'test/unit/lib/redmine/helpers/gantt_test.rb'

View File

@@ -264,12 +264,10 @@ module IssuesHelper
def render_full_width_custom_fields_rows(issue)
values = issue.visible_custom_field_values.select {|value| value.custom_field.full_width_layout?}
return if values.empty?
s = ''.html_safe
values.each_with_index do |value, i|
attr_value_tag = custom_field_value_tag(value)
next if attr_value_tag.blank?
content =
content_tag('hr') +
content_tag('p', content_tag('strong', custom_field_name_tag(value.custom_field) )) +