Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Oct 18, 2021
1 parent 373e7db commit f7c8be8
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 29 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Justin Dennison <[email protected]>
Marcus <[email protected]>
Matt Cochrane <[email protected]>
Milan Raj <[email protected]>
Momtchil Momtchev <[email protected]>
Ognjen Jevremović <[email protected]>
Philipp Burckhardt <[email protected]>
Ricky Reusser <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion async/any-by-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/any-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/bifurcate-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/count-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function limit( collection, opts, indicator, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/every-by-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/every-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/for-each-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/for-each/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function limit( collection, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/group-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function limit( collection, opts, indicator, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/inmap-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/inmap/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function limit( collection, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/map-function/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function limit( n, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all invocations...
if ( idx < m ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/map-keys/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function limit( obj, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all properties...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/map-values/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function limit( obj, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all properties...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/none-by-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/none-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/reduce-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function limit( collection, acc, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/reduce/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function limit( collection, acc, opts, fcn, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion async/series-waterfall/lib/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function factory( fcns, clbk, thisArg ) {
*/
function waterfall() {
var idx = -1;
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return

/**
* Executes the next function in the series.
Expand Down
2 changes: 1 addition & 1 deletion async/some-by-right/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function limit( collection, n, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx > 0 ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/some-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function limit( collection, n, opts, predicate, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}

Expand Down
2 changes: 1 addition & 1 deletion async/tabulate-by/lib/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function limit( collection, opts, indicator, done ) {
for ( i = 0; i < lim; i++ ) {
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
if ( idx < maxIndex ) {
next(); // eslint-disable-line callback-return
next(); // eslint-disable-line node/callback-return
}
}
/**
Expand Down
4 changes: 2 additions & 2 deletions find/lib/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function find( arr, options, clbk ) { // eslint-disable-line stdlib/no-redeclare
// Search moving from begin-to-end [0,1,...]:
for ( i = 0; i < len; i++ ) {
v = arr[ i ];
if ( cb( v, i, arr ) ) { // eslint-disable-line callback-return
if ( cb( v, i, arr ) ) { // eslint-disable-line node/callback-return
if ( mode === 2 ) {
out.push( [ i, v ] );
} else if ( mode === 1 ) {
Expand All @@ -184,7 +184,7 @@ function find( arr, options, clbk ) { // eslint-disable-line stdlib/no-redeclare
k = -k;
for ( i = len-1; i >= 0; i-- ) {
v = arr[ i ];
if ( cb( v, i, arr ) ) { // eslint-disable-line callback-return
if ( cb( v, i, arr ) ) { // eslint-disable-line node/callback-return
if ( mode === 2 ) {
out.push( [ i, v ] );
} else if ( mode === 1 ) {
Expand Down
2 changes: 1 addition & 1 deletion inmap-right/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ bench( pkg+'::loop', function benchmark( b ) {
for ( i = 0; i < b.iterations; i++ ) {
arr[ 0 ] += 10.0;
for ( j = arr.length-1; j >= 0; j-- ) {
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line callback-return
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line node/callback-return
}
if ( arr.length === 0 ) {
b.fail( 'should not be empty' );
Expand Down
2 changes: 1 addition & 1 deletion inmap/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ bench( pkg+'::loop', function benchmark( b ) {
for ( i = 0; i < b.iterations; i++ ) {
arr[ 0 ] += 10.0;
for ( j = 0; j < arr.length; j++ ) {
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line callback-return
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line node/callback-return
}
if ( arr.length === 0 ) {
b.fail( 'should not be empty' );
Expand Down
2 changes: 1 addition & 1 deletion library-manifest/bin/cli
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
var resolve = require( 'path' ).resolve;

// NOTE: we explicitly avoid using `@stdlib/fs/read-file` in this particular package in order to avoid circular dependencies. This should not be problematic as this command-line utility will be executed via Node.js.
var readFileSync = require( 'fs' ).readFileSync; // eslint-disable-line no-sync
var readFileSync = require( 'fs' ).readFileSync; // eslint-disable-line node/no-sync
var CLI = require( '@stdlib/cli/ctor' );
var manifest = require( './../lib' );

Expand Down
4 changes: 2 additions & 2 deletions parallel/lib/node/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function exec( files, opts, clbk ) {
idx = -1;
for ( i = 0; i < opts.concurrency; i++ ) {
pid = pids[ i%pids.length ];
next( workers[ pid ] ); // eslint-disable-line callback-return
next( workers[ pid ] ); // eslint-disable-line node/callback-return
}

/**
Expand Down Expand Up @@ -181,7 +181,7 @@ function exec( files, opts, clbk ) {
numClosed += 1;
debug( '%d of %d child processes have closed.', numClosed, opts.workers );
if ( numClosed === opts.workers ) {
done(); // eslint-disable-line callback-return
done(); // eslint-disable-line node/callback-return
}
}

Expand Down

0 comments on commit f7c8be8

Please sign in to comment.