diff --git a/app/helpers/hash_format_helper.rb b/app/helpers/hash_format_helper.rb index d22e6e53c6..cfa8808b2f 100644 --- a/app/helpers/hash_format_helper.rb +++ b/app/helpers/hash_format_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module HashFormatHelper # These methods add classes to the HTML structure def format_hash(hash, html = "") @@ -19,7 +21,7 @@ def format_hash(hash, html = "") def build_dl_array(key, value) content_tag(:dl, class: "govuk-body kvp govuk-!-margin-bottom-0") do - dl_contents = "" + dl_contents = +"" dl_contents << content_tag(:dt, standardize_key(key)) value.each do |val| dl_contents << if val.is_a?(Hash) @@ -34,7 +36,7 @@ def build_dl_array(key, value) def build_dl(key, value) content_tag(:dl, class: "govuk-body kvp govuk-!-margin-bottom-0") do - dl_contents = "" + dl_contents = +"" dl_contents << content_tag(:dt, standardize_key(key)) dl_contents << if standard_type?(value) content_tag(:dd, value.to_s.capitalize)