Skip to content

Commit aaf2152

Browse files
committed
fix: fix panic when ctx is nil
1 parent ca8731a commit aaf2152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notify/notify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (t *Template) Send() error {
105105
notifier := notifierPool.Get().(*gorequest.SuperAgent)
106106
defer notifierPool.Put(notifier)
107107

108-
if t.ctx == nil {
108+
if t.ctx != nil {
109109
// Add tracing information to the request header.
110110
propagator := otel.GetTextMapPropagator()
111111
propagator.Inject(t.ctx, propagation.HeaderCarrier(notifier.Header))

0 commit comments

Comments
 (0)