Skip to content

Commit 113161c

Browse files
committed
move moreOutputs back
sorry, the previous location is better
1 parent 0afba71 commit 113161c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ module.exports = function f (b, opts) {
2828
var needRecords = !files.length;
2929

3030
var outopt = defined(opts.outputs, opts.output, opts.o);
31-
31+
32+
function moreOutputs (file) {
33+
if (isarray(outopt)) return [];
34+
if (!outopt) return [];
35+
var xopts = { env: xtend(process.env, { FILE: file }) };
36+
return [ outpipe(outopt, xopts) ];
37+
}
38+
3239
opts.objectMode = true;
3340
opts.raw = true;
3441
opts.rmap = {};
@@ -53,13 +60,6 @@ module.exports = function f (b, opts) {
5360
outputs = [];
5461
}
5562

56-
function moreOutputs (file) {
57-
if (isarray(outopt)) return [];
58-
if (!outopt) return [];
59-
var xopts = { env: xtend(process.env, { FILE: file }) };
60-
return [ outpipe(outopt, xopts) ];
61-
}
62-
6363
b.pipeline.get('record').push(through.obj(function(row, enc, next) {
6464
if (row.file && needRecords) {
6565
files.push(row.file);

0 commit comments

Comments
 (0)