Skip to content

Commit 48ef1fc

Browse files
committed
Always assert when a benchmark is finished
1 parent c53917a commit 48ef1fc

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/process/getuid/benchmark

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ bench( pkg, function benchmark( b ) {
2424
}
2525
}
2626
b.toc();
27-
if ( isNumber( uid ) || isNull( uid ) ) {
28-
b.pass( 'benchmark finished' );
29-
} else {
27+
if ( !isNumber( uid ) && !isNull( uid ) ) {
3028
b.fail( 'should return a number or null' );
3129
}
30+
b.pass( 'benchmark finished' );
3231
b.end();
3332
});

0 commit comments

Comments
 (0)