Skip to content

Commit 26a248d

Browse files
committed
Always assert when a benchmark finishes
1 parent 0a82a7c commit 26a248d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • lib/node_modules/@stdlib/utils/compose/benchmark

lib/node_modules/@stdlib/utils/compose/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ bench( pkg, function benchmark( b ) {
2828
b.toc();
2929
if ( isnan( y ) ) {
3030
b.fail( 'should not return NaN' );
31-
} else {
32-
b.pass( 'benchmark finished' );
3331
}
32+
b.pass( 'benchmark finished' );
3433
b.end();
3534

3635
function c( x ) {

0 commit comments

Comments
 (0)