1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 10:21:14 +00:00

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

@ -823,7 +823,6 @@ Rails/Blank:
- 'app/controllers/context_menus_controller.rb'
- 'app/controllers/repositories_controller.rb'
- 'app/controllers/watchers_controller.rb'
- 'app/helpers/issues_helper.rb'
- 'app/helpers/queries_helper.rb'
- 'app/helpers/repositories_helper.rb'
- 'app/models/mailer.rb'

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