Skip to content

Commit a0f6a41

Browse files
committed
Always print message when benchmark is finished
1 parent 0647c40 commit a0f6a41

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/assert/is-boxed-primitive/benchmark

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/assert/is-boxed-primitive/benchmark/benchmark.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ bench( pkg, function benchmark( b ) {
6060
}
6161
}
6262
b.toc();
63-
if ( isBoolean( bool ) ) {
64-
b.pass( 'benchmark finished' );
65-
} else {
63+
if ( !isBoolean( bool ) ) {
6664
b.fail( 'should return a boolean' );
6765
}
66+
b.pass( 'benchmark finished' );
6867
b.end();
6968
});

0 commit comments

Comments
 (0)