FIX: Missing variable outside of `begin` block.
This commit is contained in:
parent
313cd9940d
commit
ccf76d45f2
|
@ -70,6 +70,7 @@ module Jobs
|
||||||
|
|
||||||
body = build_web_hook_body(args, web_hook)
|
body = build_web_hook_body(args, web_hook)
|
||||||
web_hook_event = WebHookEvent.create!(web_hook_id: web_hook.id)
|
web_hook_event = WebHookEvent.create!(web_hook_id: web_hook.id)
|
||||||
|
response = nil
|
||||||
|
|
||||||
begin
|
begin
|
||||||
content_type =
|
content_type =
|
||||||
|
@ -118,7 +119,7 @@ module Jobs
|
||||||
web_hook_event.destroy!
|
web_hook_event.destroy!
|
||||||
end
|
end
|
||||||
|
|
||||||
retry_web_hook if response.status != 200
|
retry_web_hook if response&.status != 200
|
||||||
end
|
end
|
||||||
|
|
||||||
def retry_web_hook
|
def retry_web_hook
|
||||||
|
|
Loading…
Reference in New Issue