Browse files

fix various linting errors

  • Loading branch information...
1 parent 73393cd commit b89166bd10eb3e28f7499c394cde8cace8b9fbb6 @sandfox sandfox committed Mar 26, 2016
Showing with 5 additions and 6 deletions.
  1. +1 −1 lib/generic-pool.js
  2. +4 −5 test/generic-pool.test.js
View
2 lib/generic-pool.js
@@ -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)
}
View
9 test/generic-pool.test.js
@@ -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
@@ -723,7 +723,6 @@ module.exports = {
assert.ifError(err)
assert.equal(pool.availableObjectsCount(), 0)
assert.equal(pool.inUseObjectsCount(), 1)
-
})
},
@@ -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,

0 comments on commit b89166b

Please sign in to comment.