summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Leitzen <pleitzen@gitlab.com>2019-09-01 11:36:31 +0200
committerPeter Leitzen <pleitzen@gitlab.com>2019-09-01 11:37:44 +0200
commit5e23fe9f8186db930313200a61ef7eb96f6c1899 (patch)
treed16c2811ea9f67d679ceb4774529d8b09c2901cd
parentbd2629aca8e2882f43c33bc447af9b408ff75eaa (diff)
downloadgitlab-ce-pl-fix-chat-notification-service.tar.gz
Prefer proc over Hash with default blockpl-fix-chat-notification-service
-rw-r--r--app/models/project_services/chat_notification_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/chat_notification_service.rb b/app/models/project_services/chat_notification_service.rb
index dcfd5c641c2..cb75c89136e 100644
--- a/app/models/project_services/chat_notification_service.rb
+++ b/app/models/project_services/chat_notification_service.rb
@@ -10,7 +10,7 @@ class ChatNotificationService < Service
tag_push pipeline wiki_page deployment
].freeze
- EVENT_CHANNEL = Hash.new { |hash, event| "#{event}_channel" }.freeze
+ EVENT_CHANNEL = proc { |event| "#{event}_channel" }
default_value_for :category, 'chat'