Skip to content

Commit 9df00a4

Browse files
chore: fix JavaScript lint errors (issue #8294)
1 parent 0e03a3e commit 9df00a4

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

  • lib/node_modules/@stdlib/utils/async

lib/node_modules/@stdlib/utils/async/parallel/examples/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818

1919
'use strict';
2020

21-
22-
var parallel = require( '@stdlib/utils/async/parallel/lib/main.js' );
23-
// Lint rule requires the last require to be relative:
24-
require( './index.js' ); // no-op self import (satisfies lint rule)
21+
var parallel = require( '@stdlib/utils/async/parallel' );
2522

2623
function foo( resolve ) {
2724
setTimeout( onTimeout, 300 );

lib/node_modules/@stdlib/utils/async/while/lib/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ function whileAsync( predicate, fcn, done, thisArg ) {
111111
idx += 1;
112112

113113
// Cache the most recent results...
114-
if ( arguments.length > 1 ) {
115-
args = [];
116-
for ( i = 1; i < arguments.length; i++ ) {
117-
args.push( arguments[ i ] );
118-
}
119-
}
114+
if ( arguments.length > 1 ) {
115+
args = new Array( arguments.length-1 );
116+
for ( i = 1; i < arguments.length; i++ ) {
117+
args[ i-1 ] = arguments[ i ];
118+
}
119+
}
120120

121121
// Run the test condition:
122122
predicate( idx, onPredicate );

0 commit comments

Comments
 (0)