Skip to content

Commit

Permalink
fix various linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
James Butler committed Mar 26, 2016
1 parent 73393cd commit b89166b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/generic-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Pool.prototype._dispense = function dispense () {
next()
} else {
self._availableObjects.shift()
self._inUseObjects.push(objWithTimeout.obj)
self._inUseObjects.push(objWithTimeout.obj)
clientCb = self._waitingClients.dequeue()
clientCb(err, objWithTimeout.obj)
}
Expand Down
9 changes: 4 additions & 5 deletions test/generic-pool.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,9 @@ module.exports = {
callback(null, { id: 'validId' })
})
},
validate: function(resource){
validate: function (resource) {
return true
},
},
destroy: function (client) {},
max: 1,
idleTimeoutMillis: 100
Expand All @@ -723,7 +723,6 @@ module.exports = {
assert.ifError(err)
assert.equal(pool.availableObjectsCount(), 0)
assert.equal(pool.inUseObjectsCount(), 1)

})
},

Expand All @@ -735,8 +734,8 @@ module.exports = {
callback(null, { id: 'validId' })
})
},
validateAsync: function(resource, callback){
callback(true);
validateAsync: function (resource, callback) {
callback(true)
},
destroy: function (client) {},
max: 1,
Expand Down

0 comments on commit b89166b

Please sign in to comment.