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:
parent
2afe845d78
commit
942b0073d8
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user