From 8e74d8f4fab9b1a3ac958bc50538d4966e4bfb7c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 15 Jun 2015 14:54:28 -0400 Subject: [PATCH] removed parallel --- src/meta/js.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/meta/js.js b/src/meta/js.js index 456c109139..0384e8d36d 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -179,16 +179,14 @@ module.exports = function(Meta) { }; Meta.js.commitToFile = function() { - async.parallel([ - async.apply(fs.writeFile, path.join(__dirname, '../../public/nodebb.min.js'), Meta.js.cache) - ], function (err) { - if (!err) { - winston.verbose('[meta/js] Client-side minfile committed to disk.'); - emitter.emit('meta:js.compiled'); - } else { + fs.writeFile(path.join(__dirname, '../../public/nodebb.min.js'), Meta.js.cache, function (err) { + if (err) { winston.error('[meta/js] ' + err.message); process.exit(0); } + + winston.verbose('[meta/js] Client-side minfile committed to disk.'); + emitter.emit('meta:js.compiled'); }); };