Improve var definitions
This commit is contained in:
parent
0085b8ee3d
commit
72419072ea
@ -198,8 +198,8 @@ JobBackend.prototype.listWorkInProgressJob = function (callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
var usersQueue = queue(Object.keys(users).length);
|
||||
var usersName = Object.keys(users);
|
||||
var usersQueue = queue(usersName.length);
|
||||
|
||||
usersName.forEach(function (userKey) {
|
||||
usersQueue.defer(this.listWorkInProgressJobByUser.bind(this), userKey);
|
||||
|
Loading…
Reference in New Issue
Block a user