This commit is contained in:
Jonathan Rainville 2018-05-08 09:04:53 -04:00
parent 1fe6f4ee2c
commit af38383e0f
1 changed files with 143 additions and 131 deletions

View File

@ -215,7 +215,13 @@ class Pipeline {
runPlugins(file, fileContent, fileCb) {
const self = this;
if (self.pipelinePlugins.length <= 0) {
return fileCb(null, {content: fileContent, filename: file.filename, path: file.path, basedir: file.basedir, modified: true});
return fileCb(null, {
content: fileContent,
filename: file.filename,
path: file.path,
basedir: file.basedir,
modified: true
});
}
async.eachSeries(self.pipelinePlugins,
function (plugin, pluginCB) {
@ -231,7 +237,13 @@ class Pipeline {
if (err) {
self.log(err.message);
}
return fileCb(null, {content: fileContent, filename: file.filename, path: file.path, basedir: file.basedir, modified: true});
return fileCb(null, {
content: fileContent,
filename: file.filename,
path: file.path,
basedir: file.basedir,
modified: true
});
}
);
}