Skip to content

Commit b05c84e

Browse files
committed
Avoid file duplication
Since we pass the file to the callback, firing `this.push` cause to duplicate the stream. It's unnoticeable when use `gulp.dest`, but is when use `gulp-concat` for example
1 parent 9de8917 commit b05c84e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = function gulpJavaScriptObfuscator(options) {
1818
try {
1919
obfuscationResult = JavaScriptObfuscator.obfuscate(String(file.contents), options);
2020
file.contents = new Buffer(obfuscationResult.getObfuscatedCode());
21-
this.push(file);
2221
if(options.sourceMap && options.sourceMapMode !== 'inline') {
2322
this.push(new gutil.File({
2423
cwd: file.cwd,

0 commit comments

Comments
 (0)