Skip to content

Commit c7fb506

Browse files
committed
Always assert when a benchmark finishes
1 parent abc31cf commit c7fb506

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/assert/is-plain-object/benchmark

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/assert/is-plain-object/benchmark/benchmark.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ bench( pkg, function benchmark( b ) {
3737
}
3838
}
3939
b.toc();
40-
if ( isBoolean( bool ) ) {
41-
b.pass( 'benchmark finished' );
42-
} else {
40+
if ( !isBoolean( bool ) ) {
4341
b.fail( 'should return a boolean' );
4442
}
43+
b.pass( 'benchmark finished' );
4544
b.end();
4645
});

0 commit comments

Comments
 (0)