File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,18 @@ var Transform = require('readable-stream/transform');
44var rs = require ( 'replacestream' ) ;
55var istextorbinary = require ( 'istextorbinary' ) ;
66
7- module . exports = function ( search , replacement , options ) {
7+ module . exports = function ( search , _replacement , options ) {
88 return new Transform ( {
99 objectMode : true ,
1010 transform : function ( file , enc , callback ) {
1111 if ( file . isNull ( ) ) {
1212 return callback ( null , file ) ;
1313 }
1414
15- if ( typeof replacement === 'function' ) {
15+ var replacement = _replacement ;
16+ if ( typeof _replacement === 'function' ) {
1617 // Pass the vinyl file object as this.file
17- replacement = replacement . bind ( { file : file } ) ;
18+ replacement = _replacement . bind ( { file : file } ) ;
1819 }
1920
2021 function doReplace ( ) {
You can’t perform that action at this time.
0 commit comments