From 963ecc0d925dcb9375ce9aaf05ea18619f2ed843 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 16 Aug 2018 16:00:06 -0500 Subject: [PATCH] formatting --- lib/pipeline/pipeline.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 7e7fe345..63225cf3 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -111,13 +111,16 @@ class Pipeline { }); }, function assetFileWrite(next) { - async.eachOf(self.assetFiles, function (files, targetFile, cb) { - async.map(files, + async.eachOf( + self.assetFiles, + function (files, targetFile, cb) { const isDir = targetFile.slice(-1) === '/' || targetFile.indexOf('.') === -1; // if it's not a directory if (!isDir) { self.logger.info(__("writing file") + " " + (self.buildDir + targetFile).bold.dim); } + async.map( + files, function (file, fileCb) { self.logger.trace("reading " + file.filename); @@ -192,7 +195,8 @@ class Pipeline { } ); }, - next); + next + ); }, function removePlaceholderPage(next){ let placeholderFile = self.buildDir + placeholderPage; @@ -212,7 +216,8 @@ class Pipeline { if (self.pipelinePlugins.length <= 0) { return fileCb(null, {content: fileContent, filename: file.filename, path: file.path, basedir: file.basedir, modified: true}); } - async.eachSeries(self.pipelinePlugins, + async.eachSeries( + self.pipelinePlugins, function(plugin, pluginCB) { if (file.options && file.options.skipPipeline) { return pluginCB();