Please jshint

As suggested by jshint:
- Remove the unused `res` return value
- Add a semicolon at the end of the file
This commit is contained in:
Rafa de la Torre 2018-07-30 12:36:16 +02:00
parent 2afe845d78
commit 942b0073d8

View File

@ -24,13 +24,13 @@ module.exports.resetPgBouncerConnections = function (callback) {
// We just chain a PAUSE followed by a RESUME to reset internal pool connections of PgBouncer
client.connect();
client.query('PAUSE', (err, res) => {
client.query('PAUSE', err => {
if (err) {
return callback(err);
}
client.query('RESUME', (err, res) => {
client.query('RESUME', err => {
client.end();
return callback(err);
});
});
}
};