Skip to content

Commit 0944e69

Browse files
committed
fix: resolve linting errors (issue #8169)
1 parent 76a39f5 commit 0944e69

File tree

2 files changed

+22
-22
lines changed
  • lib/node_modules/@stdlib

2 files changed

+22
-22
lines changed

lib/node_modules/@stdlib/assert/is-nonpositive-number/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable no-new-wrappers, no-undefined, no-empty-function */
19+
/* eslint-disable no-undefined, no-empty-function */
2020

2121
'use strict';
2222

lib/node_modules/@stdlib/utils/async/reduce-right/lib/limit.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,27 @@ function limit( collection, acc, opts, fcn, done ) {
7575
}
7676
}
7777
/**
78+
* Callback invoked once a provided function finishes processing a collection element.
79+
*
80+
* @private
81+
* @param {*} [error] - error
82+
* @param {*} [result] - accumulation result
83+
* @returns {void}
84+
*/
85+
function cb( error, result ) {
86+
if ( flg ) {
87+
// Prevent further processing of collection elements:
88+
return;
89+
}
90+
if ( error ) {
91+
flg = true;
92+
return clbk( error );
93+
}
94+
debug( 'Accumulator: %s', JSON.stringify( result ) );
95+
acc = result;
96+
clbk();
97+
}
98+
/**
7899
* Callback to invoke a provided function for the next element in a collection.
79100
*
80101
* @private
@@ -89,27 +110,6 @@ function limit( collection, acc, opts, fcn, done ) {
89110
} else {
90111
fcn.call( opts.thisArg, acc, collection[ idx ], idx, collection, cb ); // eslint-disable-line max-len
91112
}
92-
/**
93-
* Callback invoked once a provided function finishes processing a collection element.
94-
*
95-
* @private
96-
* @param {*} [error] - error
97-
* @param {*} [result] - accumulation result
98-
* @returns {void}
99-
*/
100-
function cb( error, result ) {
101-
if ( flg ) {
102-
// Prevent further processing of collection elements:
103-
return;
104-
}
105-
if ( error ) {
106-
flg = true;
107-
return clbk( error );
108-
}
109-
debug( 'Accumulator: %s', JSON.stringify( result ) );
110-
acc = result;
111-
clbk();
112-
}
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)