diff options
-rw-r--r-- | app/models/project_services/hangouts_chat_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/project_services/hangouts_chat_service.rb b/app/models/project_services/hangouts_chat_service.rb index 00e9b634dd1..53f11c424e3 100644 --- a/app/models/project_services/hangouts_chat_service.rb +++ b/app/models/project_services/hangouts_chat_service.rb @@ -58,8 +58,7 @@ class HangoutsChatService < ChatNotificationService end def fetch_attachment_title(attachment) - return nil if attachment[:title].nil? - return attachment[:title] if attachment[:title_link].nil? + return attachment[:title] unless attachment[:title_link] "<#{attachment[:title_link]}|#{attachment[:title]}>" end |