diff --git a/lib/node_modules/@stdlib/assert/is-nonpositive-number/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-nonpositive-number/benchmark/benchmark.js index aa4fb5daddcc..182fc8dafc0c 100644 --- a/lib/node_modules/@stdlib/assert/is-nonpositive-number/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-nonpositive-number/benchmark/benchmark.js @@ -16,7 +16,7 @@ * limitations under the License. */ -/* eslint-disable no-new-wrappers, no-undefined, no-empty-function */ +/* eslint-disable no-undefined, no-empty-function */ 'use strict'; diff --git a/lib/node_modules/@stdlib/utils/async/reduce-right/lib/limit.js b/lib/node_modules/@stdlib/utils/async/reduce-right/lib/limit.js index cdb60afd910c..ef731a1837d6 100644 --- a/lib/node_modules/@stdlib/utils/async/reduce-right/lib/limit.js +++ b/lib/node_modules/@stdlib/utils/async/reduce-right/lib/limit.js @@ -74,6 +74,28 @@ function limit( collection, acc, opts, fcn, done ) { next(); // eslint-disable-line node/callback-return } } + /** + * Callback invoked once a provided function finishes processing a collection element. + * + * @private + * @param {*} [error] - error + * @param {*} [result] - accumulation result + * @returns {void} + */ + function cb( error, result ) { + if ( flg ) { + // Prevent further processing of collection elements: + return; + } + if ( error ) { + flg = true; + return clbk( error ); + } + debug( 'Accumulator: %s', JSON.stringify( result ) ); + acc = result; + clbk(); + } + /** * Callback to invoke a provided function for the next element in a collection. * @@ -89,27 +111,6 @@ function limit( collection, acc, opts, fcn, done ) { } else { fcn.call( opts.thisArg, acc, collection[ idx ], idx, collection, cb ); // eslint-disable-line max-len } - /** - * Callback invoked once a provided function finishes processing a collection element. - * - * @private - * @param {*} [error] - error - * @param {*} [result] - accumulation result - * @returns {void} - */ - function cb( error, result ) { - if ( flg ) { - // Prevent further processing of collection elements: - return; - } - if ( error ) { - flg = true; - return clbk( error ); - } - debug( 'Accumulator: %s', JSON.stringify( result ) ); - acc = result; - clbk(); - } } /**