Skip to content

Commit 1dd3804

Browse files
authored
chore: fixing build (#1036)
1 parent 8a29221 commit 1dd3804

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/opentelemetry-plugin-grpc/test/grpc.test.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,7 @@ describe('GrpcPlugin', () => {
436436
return provider.getTracer('default').withSpan(span, async () => {
437437
const rootSpan = provider.getTracer('default').getCurrentSpan();
438438
if (!rootSpan) {
439-
assert.ok(false);
440-
return; // return so typechecking passes for rootSpan.end()
439+
return assert.ok(false);
441440
}
442441
assert.deepStrictEqual(rootSpan, span);
443442

@@ -531,8 +530,7 @@ describe('GrpcPlugin', () => {
531530
return provider.getTracer('default').withSpan(span, async () => {
532531
const rootSpan = provider.getTracer('default').getCurrentSpan();
533532
if (!rootSpan) {
534-
assert.ok(false);
535-
return; // return so typechecking passes for rootSpan.end()
533+
return assert.ok(false);
536534
}
537535
assert.deepStrictEqual(rootSpan, span);
538536

0 commit comments

Comments
 (0)