We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 002273c commit 8ac77fcCopy full SHA for 8ac77fc
lib/createOutputStream/writeStream.js
@@ -3,7 +3,7 @@ var fs = require('graceful-fs');
3
module.exports = function(writePath, file, cb) {
4
var outStream = fs.createWriteStream(writePath);
5
file.contents.once('error', cb);
6
- outStream.once('end', function(){
+ outStream.once('close', function(){
7
cb();
8
});
9
file.contents.pipe(outStream);
0 commit comments