Skip to content

Commit

Permalink
bench: use || instead of &&
Browse files Browse the repository at this point in the history
Signed-off-by: Gunj Joshi <[email protected]>
  • Loading branch information
gunjjoshi authored Aug 8, 2024
1 parent fa0b494 commit 6264d4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bench( pkg+'::true', function benchmark( b ) {
}
}
b.toc();
if ( !isBoolean( bool ) && bool !== true ) {
if ( !isBoolean( bool ) || bool !== true ) {
b.fail( 'should return true' );
}
b.pass( 'benchmark finished' );
Expand Down

0 comments on commit 6264d4e

Please sign in to comment.