Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project_services/chat_message/issue_message.rb')
-rw-r--r--app/models/project_services/chat_message/issue_message.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/models/project_services/chat_message/issue_message.rb b/app/models/project_services/chat_message/issue_message.rb
index 0cdcfcf0237..c8e90b66bae 100644
--- a/app/models/project_services/chat_message/issue_message.rb
+++ b/app/models/project_services/chat_message/issue_message.rb
@@ -41,15 +41,11 @@ module ChatMessage
private
def message
- if opened_issue?
- "[#{project_link}] Issue #{state} by #{user_combined_name}"
- else
- "[#{project_link}] Issue #{issue_link} #{state} by #{user_combined_name}"
- end
+ "[#{project_link}] Issue #{issue_link} #{state} by #{user_combined_name}"
end
def opened_issue?
- action == "open"
+ action == 'open'
end
def description_message
@@ -57,7 +53,7 @@ module ChatMessage
title: issue_title,
title_link: issue_url,
text: format(description),
- color: "#C95823"
+ color: '#C95823'
}]
end