Closed EdwardB120 closed 3 months ago
Issue #, if available:
N/A
Description of changes:
Error can be undefined when subSegmentCallback is called in this scenario, lines 119 to 121 in fetch_p.js.
undefined
subSegmentCallback
119
121
fetch_p.js
if (thisSubsegmentCallback) { thisSubsegmentCallback(subsegment, requestClone, response); }
These changes update the type from error: Error to error?: Error | undefined.
error: Error
error?: Error | undefined
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available:
N/A
Description of changes:
Error can be
undefined
whensubSegmentCallback
is called in this scenario, lines119
to121
infetch_p.js
.These changes update the type from
error: Error
toerror?: Error | undefined
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.