From 4d429aa6d6f24644bd6fc3fdc6db7fd1caadba76 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 11 Apr 2014 17:19:40 -0400 Subject: [PATCH] linting install.js --- src/install.js | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/install.js b/src/install.js index e3ac61f31d..0cb9779fc0 100644 --- a/src/install.js +++ b/src/install.js @@ -99,10 +99,18 @@ var async = require('async'), next(); } else { winston.error('Required values are missing for automated setup:'); - if (!setupVal['admin:username']) winston.error(' admin:username'); - if (!setupVal['admin:password']) winston.error(' admin:password'); - if (!setupVal['admin:password:confirm']) winston.error(' admin:password:confirm'); - if (!setupVal['admin:email']) winston.error(' admin:email'); + if (!setupVal['admin:username']) { + winston.error(' admin:username'); + } + if (!setupVal['admin:password']) { + winston.error(' admin:password'); + } + if (!setupVal['admin:password:confirm']) { + winston.error(' admin:password:confirm'); + } + if (!setupVal['admin:email']) { + winston.error(' admin:email'); + } process.exit(); } } else { @@ -124,9 +132,15 @@ var async = require('async'), next(); } else { winston.error('Required values are missing for automated CI integration:'); - if (!ciVals.hasOwnProperty('host')) winston.error(' host'); - if (!ciVals.hasOwnProperty('port')) winston.error(' port'); - if (!ciVals.hasOwnProperty('database')) winston.error(' database'); + if (!ciVals.hasOwnProperty('host')) { + winston.error(' host'); + } + if (!ciVals.hasOwnProperty('port')) { + winston.error(' port'); + } + if (!ciVals.hasOwnProperty('database')) { + winston.error(' database'); + } process.exit(); } } else { @@ -200,10 +214,10 @@ var async = require('async'), // Add CI object if (install.ciVals) { - config['test_database'] = {}; + config.test_database = {}; for(var prop in install.ciVals) { if (install.ciVals.hasOwnProperty(prop)) { - config['test_database'][prop] = install.ciVals[prop]; + config.test_database[prop] = install.ciVals[prop]; } } }