mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fix jshint errors in lib/connection-parameters.js
This commit is contained in:
parent
61139817b4
commit
22764e045c
@ -48,7 +48,7 @@ var add = function(params, config, paramName) {
|
||||
};
|
||||
|
||||
ConnectionParameters.prototype.getLibpqConnectionString = function(cb) {
|
||||
var params = []
|
||||
var params = [];
|
||||
add(params, this, 'user');
|
||||
add(params, this, 'password');
|
||||
add(params, this, 'port');
|
||||
@ -58,7 +58,7 @@ ConnectionParameters.prototype.getLibpqConnectionString = function(cb) {
|
||||
if(this.isDomainSocket) {
|
||||
params.push("host=" + this.getDomainSocketName());
|
||||
return cb(null, params.join(' '));
|
||||
}
|
||||
}
|
||||
dns.lookup(this.host, function(err, address) {
|
||||
if(err) return cb(err, null);
|
||||
params.push("hostaddr=" + address);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user