File tree 1 file changed +2
-4
lines changed
packages/opentelemetry-plugin-grpc/test
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -436,8 +436,7 @@ describe('GrpcPlugin', () => {
436
436
return provider . getTracer ( 'default' ) . withSpan ( span , async ( ) => {
437
437
const rootSpan = provider . getTracer ( 'default' ) . getCurrentSpan ( ) ;
438
438
if ( ! rootSpan ) {
439
- assert . ok ( false ) ;
440
- return ; // return so typechecking passes for rootSpan.end()
439
+ return assert . ok ( false ) ;
441
440
}
442
441
assert . deepStrictEqual ( rootSpan , span ) ;
443
442
@@ -531,8 +530,7 @@ describe('GrpcPlugin', () => {
531
530
return provider . getTracer ( 'default' ) . withSpan ( span , async ( ) => {
532
531
const rootSpan = provider . getTracer ( 'default' ) . getCurrentSpan ( ) ;
533
532
if ( ! rootSpan ) {
534
- assert . ok ( false ) ;
535
- return ; // return so typechecking passes for rootSpan.end()
533
+ return assert . ok ( false ) ;
536
534
}
537
535
assert . deepStrictEqual ( rootSpan , span ) ;
538
536
You can’t perform that action at this time.
0 commit comments