File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,14 @@ module.exports = function f (b, opts) {
28
28
var needRecords = ! files . length ;
29
29
30
30
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
+
32
39
opts . objectMode = true ;
33
40
opts . raw = true ;
34
41
opts . rmap = { } ;
@@ -53,13 +60,6 @@ module.exports = function f (b, opts) {
53
60
outputs = [ ] ;
54
61
}
55
62
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
-
63
63
b . pipeline . get ( 'record' ) . push ( through . obj ( function ( row , enc , next ) {
64
64
if ( row . file && needRecords ) {
65
65
files . push ( row . file ) ;
You can’t perform that action at this time.
0 commit comments