From: Marius Balteanu Date: Fri, 17 Jun 2022 10:32:44 +0000 (+0000) Subject: Fix rubocop warning (Add empty line after guard clause). X-Git-Tag: 5.1.0~552 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1352bb1e654c561b1ebcf6dc0d4aae8825701a8;p=redmine.git Fix rubocop warning (Add empty line after guard clause). git-svn-id: https://svn.redmine.org/redmine/trunk@21655 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1a8402020..e2eebfa41 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -296,6 +296,7 @@ module ApplicationHelper end when 'CustomValue', 'CustomFieldValue' return "" unless object.customized&.visible? + if object.custom_field f = object.custom_field.format.formatted_custom_value(self, object, html) if f.nil? || f.is_a?(String)