Skip to content

Commit be2d13e

Browse files
authored
chore: fix JavaScript lint errors
PR-URL: #9796 Closes: #9792 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent b3348f7 commit be2d13e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function createBenchmark( fcn, len, primitives ) {
5050
}
5151
} else {
5252
for ( i = 0; i < len; i++ ) {
53-
x.push( new Number( -1.0 ) ); // eslint-disable-line no-new-wrappers
53+
x.push( new Number( -1.0 ) );
5454
}
5555
}
5656
return benchmark;

lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ tape( 'a FancyArray constructor returns an instance which has a `set` method whi
7575

7676
function badValue( value, dim ) {
7777
return function badValue() {
78-
var args = new Array( shape.length+1 );
78+
var args = [];
7979
var i;
8080

8181
for ( i = 0; i < shape.length; i++ ) {
8282
if ( i === dim ) {
83-
args[ i ] = value;
83+
args.push( value );
8484
} else {
85-
args[ i ] = 0;
85+
args.push( 0 );
8686
}
8787
}
88-
args[ i ] = 10.0;
88+
args.push( 10.0 );
8989
arr.set.apply( arr, args );
9090
};
9191
}

0 commit comments

Comments
 (0)