summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-23 15:19:16 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-23 15:19:16 -0200
commitdfef28c920363036584d12cd030e021a789f522e (patch)
tree9fb4bdb7e3e990d2dc31f590329bbb429a23b1ac
parent6dc3efdd9896156b5b08c735f1639437ff874fc0 (diff)
downloadgitlab-ce-issue_25887.tar.gz
Rename `opt` to `opts` on ChatNotificationService#executeissue_25887
-rw-r--r--app/models/project_services/chat_notification_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/project_services/chat_notification_service.rb b/app/models/project_services/chat_notification_service.rb
index 475344d80ce..de815ff2bfe 100644
--- a/app/models/project_services/chat_notification_service.rb
+++ b/app/models/project_services/chat_notification_service.rb
@@ -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