fix jshint errors in lib/connection-parameters.js

This commit is contained in:
Philipp Borgers 2013-01-24 22:07:53 +01:00
parent 61139817b4
commit 22764e045c

View File

@ -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);