Skip to content

Commit dff80dc

Browse files
committed
Remove redundant checks
1 parent fb9bf9e commit dff80dc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ bench( pkg+':level=+infinity', function benchmark( b ) {
8383
}
8484
}
8585
b.toc();
86-
if ( typeof out !== typeof val ) {
87-
b.fail( 'returns value of expected type' );
88-
}
8986
if ( out === val ) {
9087
b.fail( 'returns a copy of the input value' );
9188
}
@@ -195,9 +192,6 @@ bench( pkg+':level=0', function benchmark( b ) {
195192
}
196193
}
197194
b.toc();
198-
if ( typeof out !== typeof val ) {
199-
b.fail( 'returns value of expected type' );
200-
}
201195
if ( out !== val ) {
202196
b.fail( 'returns input value' );
203197
}

0 commit comments

Comments
 (0)