Skip to content

Commit

Permalink
fix(vfs.dest): attatched an noop data listener
Browse files Browse the repository at this point in the history
* this fixes #26
  • Loading branch information
tomchentw committed Jun 26, 2014
1 parent 8fef1ed commit 8bf8612
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var fs = require('graceful-fs');

var writeContents = require('./writeContents');

function noop () {}

// 511 = 0777
var processMode = 511 & (~process.umask());

Expand Down Expand Up @@ -55,7 +57,8 @@ function dest(outFolder, opt) {
});
}

return through2.obj(saveFile);
return through2.obj(saveFile)
.on('data', noop);
}

module.exports = dest;

0 comments on commit 8bf8612

Please sign in to comment.