From 1617c99e7b58399df165fc9b3a21ffe48b0e2021 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 16 Nov 2016 20:26:47 -0500 Subject: [PATCH] linting app.js --- app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 599508f548..466e81745b 100644 --- a/app.js +++ b/app.js @@ -260,7 +260,7 @@ function setup() { async.apply(install.setup), async.apply(loadConfig), async.apply(build, true) - ], function(err, data) { + ], function (err, data) { // Disregard build step data data = data[0]; @@ -294,17 +294,17 @@ function setup() { }); }; -function build (targets, callback) { +function build(targets, callback) { var db = require('./src/database'); var meta = require('./src/meta'); var valid = ['js', 'css', 'tpl']; - var step = function(target, next) { + var step = function (target, next) { winston.info('[build] Build step completed in ' + ((Date.now() - startTime) / 1000) + 's'); next(); }; var startTime; - targets = (targets === true ? valid : targets.split(',').filter(function(target) { + targets = (targets === true ? valid : targets.split(',').filter(function (target) { return valid.indexOf(target) !== -1; })); @@ -323,7 +323,7 @@ function build (targets, callback) { } // eachSeries because it potentially(tm) runs faster on Windows this way - async.eachSeries(targets, function(target, next) { + async.eachSeries(targets, function (target, next) { switch(target) { case 'js': winston.info('[build] Building javascript'); @@ -351,7 +351,7 @@ function build (targets, callback) { setImmediate(next); break; } - }, function(err) { + }, function (err) { if (err) { winston.error('[build] Encountered error during build step: ' + err.message); return process.exit(1); @@ -368,7 +368,7 @@ function build (targets, callback) { }); }; -function upgrade () { +function upgrade() { var db = require('./src/database'); var meta = require('./src/meta'); var upgrade = require('./src/upgrade'); @@ -378,7 +378,7 @@ function upgrade () { async.apply(meta.configs.init), async.apply(upgrade.upgrade), async.apply(build, true) - ], function(err) { + ], function (err) { if (err) { winston.error(err.stack); process.exit(1);