lint compliance
This commit is contained in:
@@ -128,7 +128,7 @@ module.exports = function (max) {
|
||||
// run as many new jobs as are allowed.
|
||||
var next = function () {
|
||||
// array.some skips over bare indexes in sparse arrays
|
||||
var pending = jobs.some(function (bag, priority) {
|
||||
var pending = jobs.some(function (bag /*, priority*/) {
|
||||
if (!bag || typeof(bag) !== 'object') { return; }
|
||||
// a bag is a map of jobs for any particular degree of priority
|
||||
// iterate over jobs in the bag until you're out of 'workers'
|
||||
@@ -202,7 +202,7 @@ module.exports = function (max) {
|
||||
};
|
||||
|
||||
var started = false;
|
||||
var start = plan.start = function () {
|
||||
plan.start = function () {
|
||||
// don't allow multiple starts
|
||||
// even though it should work, it's simpler not to.
|
||||
if (started) { return plan; }
|
||||
|
||||
Reference in New Issue
Block a user