Skip to content

Commit

Permalink
Merge pull request #18 from krakend/fix_do_not_return_otel_interface_…
Browse files Browse the repository at this point in the history
…when_nil

Fix: do not return otel interface when nil
  • Loading branch information
kpacha authored Apr 25, 2024
2 parents b6787b7 + a918d4f commit cf6b5d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions state/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ func GlobalState() OTEL {
otelStateMutex.RLock()
s := otelState
otelStateMutex.RUnlock()
if s == nil {
return nil
}
return s
}

Expand Down

0 comments on commit cf6b5d0

Please sign in to comment.