A platform for community discussion. Free, open, simple.
FIX: Missing variable outside of `begin` block.
Guo Xiang Tanccf76d45f21a
diff --git a/app/jobs/regular/emit_web_hook_event.rb b/app/jobs/regular/emit_web_hook_event.rbindex 742c3b7f2b3..5cd4010abcd 100644--- a/app/jobs/regular/emit_web_hook_event.rb+++ b/app/jobs/regular/emit_web_hook_event.rb@@ -70,6 +70,7 @@ module Jobsbody = build_web_hook_body(args, web_hook)web_hook_event = WebHookEvent.create!(web_hook_id: web_hook.id)+ response = nilbegincontent_type =@@ -118,7 +119,7 @@ module Jobsweb_hook_event.destroy!end- retry_web_hook if response.status != 200+ retry_web_hook if response&.status != 200enddef retry_web_hook