From b2d643cf1de4a4a5f05ecfd34fe70880e202e750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Sat, 12 Apr 2014 13:55:03 +0200 Subject: [PATCH] Do not re-assign --- lib/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app.js b/lib/app.js index 24a8fff5..6dcb972f 100755 --- a/lib/app.js +++ b/lib/app.js @@ -26,12 +26,12 @@ var LamassuConfig = require('lamassu-config'); var routes = require('./routes'); module.exports = function (options) { - var connectionString = options.postgres; var app = express(); + var connectionString; var server; var config; - connectionString = connectionString || + connectionString = options.postgres || 'postgres://lamassu:lamassu@localhost/lamassu'; config = new LamassuConfig(connectionString);