diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-23 20:55:13 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-23 20:55:13 +0300 |
commit | d54d5465967f9473c31a2e9572a4262b671ec6a7 (patch) | |
tree | 3a1b8ff8bd07aa5c5e7c11588ff712b1f4f1523b | |
parent | dfef28c920363036584d12cd030e021a789f522e (diff) |
Fix rubucop offenses
-rw-r--r-- | app/models/project_services/chat_notification_service.rb | 4 |
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) |