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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-23 20:55:13 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-23 20:55:13 +0300
commitd54d5465967f9473c31a2e9572a4262b671ec6a7 (patch)
tree3a1b8ff8bd07aa5c5e7c11588ff712b1f4f1523b
parentdfef28c920363036584d12cd030e021a789f522e (diff)
Fix rubucop offenses
-rw-r--r--app/models/project_services/chat_notification_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/chat_notification_service.rb b/app/models/project_services/chat_notification_service.rb
index de815ff2bfe..b7ef44c3054 100644
--- a/app/models/project_services/chat_notification_service.rb
+++ b/app/models/project_services/chat_notification_service.rb
@@ -49,10 +49,10 @@ class ChatNotificationService < Service
return false unless message
- channel_name = get_channel_field(object_kind).presence || channel
+ channel_name = get_channel_field(object_kind).presence || channel
opts = {}
- opts[:channel] = channel_name if channel_name
+ opts[:channel] = channel_name if channel_name
opts[:username] = username if username
notifier = Slack::Notifier.new(webhook, opts)