Skip to content
Snippets Groups Projects
Commit dfef28c9 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Rename `opt` to `opts` on ChatNotificationService#execute

parent 6dc3efdd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -51,11 +51,11 @@ class ChatNotificationService < Service
 
channel_name = get_channel_field(object_kind).presence || channel
 
opt = {}
opt[:channel] = channel_name if channel_name
opt[:username] = username if username
opts = {}
opts[:channel] = channel_name if channel_name
opts[:username] = username if username
 
notifier = Slack::Notifier.new(webhook, opt)
notifier = Slack::Notifier.new(webhook, opts)
notifier.ping(message.pretext, attachments: message.attachments, fallback: message.fallback)
 
true
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment