Commit 489992bf authored by Sebastian Leuser's avatar Sebastian Leuser

Apply suggestion to app/models/project_services/webex_teams_service.rb

parent 838a2349
......@@ -45,8 +45,8 @@ class WebexTeamsService < ChatNotificationService
private
def notify(message, opts)
@header = { 'Content-type' => 'application/json' }
response = Gitlab::HTTP.post(webhook, headers: @header, body: { markdown: message.pretext }.to_json)
header = { 'Content-Type' => 'application/json' }
response = Gitlab::HTTP.post(webhook, headers: header, body: { markdown: message.pretext }.to_json)
response if response.success?
end
......
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