Fix rubucop offenses

This commit is contained in:
Douglas Barbosa Alexandre 2016-12-23 15:55:13 -02:00
parent dfef28c920
commit d54d546596
1 changed files with 2 additions and 2 deletions

View File

@ -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)