Skip to content

Commit ba8cb12

Browse files
chargomemydea
andcommitted
refactor: update undefined check
Co-authored-by: Francesco Novy <[email protected]>
1 parent 09aaa4d commit ba8cb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/tracing/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function instrumentOutgoingRequests(_options?: Partial<RequestInstrumenta
127127
event.spans.forEach(span => {
128128
if (span.op === 'http.client') {
129129
const updatedTimestamp = spanIdToEndTimestamp.get(span.span_id);
130-
if (updatedTimestamp !== undefined) {
130+
if (updatedTimestamp) {
131131
span.timestamp = updatedTimestamp / 1000;
132132
spanIdToEndTimestamp.delete(span.span_id);
133133
}

0 commit comments

Comments
 (0)