Skip to content

Commit 29db97f

Browse files
authored
bench: avoid unneeded else clause
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent f77d5b0 commit 29db97f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/node_modules/@stdlib/math/base/special/fast/atanhf/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ bench( pkg, function benchmark( b ) {
4848
b.toc();
4949
if ( isnanf( y ) ) {
5050
b.fail( 'should not return NaN' );
51-
} else {
52-
b.pass( 'benchmark finished' );
5351
}
52+
b.pass( 'benchmark finished' );
5453
b.end();
5554
});

lib/node_modules/@stdlib/math/base/special/fast/atanhf/benchmark/benchmark.native.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ bench( format('%s::native', pkg ), opts, function benchmark( b ) {
5858
b.toc();
5959
if ( isnanf( y ) ) {
6060
b.fail( 'should not return NaN' );
61-
} else {
62-
b.pass( 'benchmark finished' );
6361
}
62+
b.pass( 'benchmark finished' );
6463
b.end();
6564
});

0 commit comments

Comments
 (0)