From 22764e045c66b161bce5d70c414558bf8ff1d829 Mon Sep 17 00:00:00 2001 From: Philipp Borgers Date: Thu, 24 Jan 2013 22:07:53 +0100 Subject: [PATCH] fix jshint errors in lib/connection-parameters.js --- lib/connection-parameters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/connection-parameters.js b/lib/connection-parameters.js index 5af75478..66e901b7 100644 --- a/lib/connection-parameters.js +++ b/lib/connection-parameters.js @@ -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);