Skip to content

Commit 4e09f10

Browse files
committed
Always assert when a benchmark is finished
1 parent b2995f6 commit 4e09f10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/process/cwd/benchmark/benchmark.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ bench( pkg, function benchmark( b ) {
2323
}
2424
}
2525
b.toc();
26-
if ( isString( dir ) ) {
27-
b.pass( 'benchmark finished' );
28-
} else {
26+
if ( !isString( dir ) ) {
2927
b.fail( 'should return a string' );
3028
}
29+
b.pass( 'benchmark finished' );
3130
b.end();
3231
});

0 commit comments

Comments
 (0)