Skip to content

Commit db2fa28

Browse files
committed
Update snippets
1 parent aa55c39 commit db2fa28

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tools/snippets/benchmark/benchmark.async.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ bench( pkg, function benchmark( b ) {
2626
b.toc();
2727
if ( TODO/* TODO condition */ ) {
2828
b.fail( 'something went wrong' );
29-
} else {
30-
b.pass( 'benchmark finished' );
3129
}
30+
b.pass( 'benchmark finished' );
3231
b.end();
3332
}
3433
});

tools/snippets/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ bench( pkg, function benchmark( b ) {
2121
b.toc();
2222
if ( TODO/* TODO: condition */ ) {
2323
b.fail( 'something went wrong' );
24-
} else {
25-
b.pass( 'benchmark finished' );
2624
}
25+
b.pass( 'benchmark finished' );
2726
b.end();
2827
});

0 commit comments

Comments
 (0)