Skip to content

Commit 6df7973

Browse files
committed
Update example
1 parent f9cb99a commit 6df7973

File tree

1 file changed

+2
-4
lines changed
  • lib/node_modules/@stdlib/bench/examples

1 file changed

+2
-4
lines changed

lib/node_modules/@stdlib/bench/examples/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ bench( 'Math.cos', opts, function benchmark( b ) {
4747

4848
if ( isnan( y ) ) {
4949
b.fail( 'something went wrong!' );
50-
} else {
51-
b.pass( 'benchmark success!' );
5250
}
51+
b.pass( 'benchmark finished' );
5352
b.end();
5453
});
5554

@@ -70,8 +69,7 @@ bench( 'cos', opts, function benchmark( b ) {
7069

7170
if ( isnan( y ) ) {
7271
b.fail( 'something went wrong!' );
73-
} else {
74-
b.pass( 'benchmark success!' );
7572
}
73+
b.pass( 'benchmark finished' );
7674
b.end();
7775
});

0 commit comments

Comments
 (0)