Fix rubucop offenses

parent dfef28c9
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment