code cleanup: rubocop: fix Rails/Blank in app/helpers/issues_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18497 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-09-21 06:39:36 +00:00
parent a6116a98c5
commit 7df0230d67
2 changed files with 1 additions and 4 deletions

View File

@@ -536,9 +536,7 @@ module IssuesHelper
# Find the name of an associated record stored in the field attribute
def find_name_by_reflection(field, id)
unless id.present?
return nil
end
return nil if id.blank?
@detail_value_name_by_reflection ||= Hash.new do |hash, key|
association = Issue.reflect_on_association(key.first.to_sym)
name = nil