Skip to content

Commit 60f611c

Browse files
Ashish AggarwalAshish Aggarwal
authored andcommitted
minor fix
1 parent b523e8e commit 60f611c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tracer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ export default class Tracer {
145145

146146
extract(format: string, carrier: any): SpanContext {
147147
if (!carrier) {
148-
return;
148+
return null;
149149
}
150150

151151
const propagator = this._registry._propagators(format);
152152
if (!propagator) {
153-
throw new Error('extracttor for the given format is not supported');
153+
throw new Error('extractor for the given format is not supported');
154154
}
155155

156156
return propagator.extract(carrier);

0 commit comments

Comments
 (0)