不要怂,就是干,撸起袖子干!

Commit 1c63e02a by Michael Robinson

Return null to tell Bluebird non-return is intentional

1 parent 87eb6a72
Showing with 4 additions and 0 deletions
......@@ -97,6 +97,7 @@ ConnectionManager.prototype.initPools = function () {
},
destroy: function(connection) {
self.$disconnect(connection);
return null;
},
max: config.pool.max,
min: config.pool.min,
......@@ -174,6 +175,7 @@ ConnectionManager.prototype.initPools = function () {
},
destroy: function(connection) {
self.$disconnect(connection);
return null;
},
validate: config.pool.validate,
max: config.pool.max,
......@@ -191,6 +193,7 @@ ConnectionManager.prototype.initPools = function () {
},
destroy: function(connection) {
self.$disconnect(connection);
return null;
},
validate: config.pool.validate,
max: config.pool.max,
......@@ -221,6 +224,7 @@ ConnectionManager.prototype.getConnection = function(options) {
self.versionPromise = null;
self.$disconnect(connection);
return null;
});
}).catch(function (err) {
self.versionPromise = null;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!