Skip to content

Commit 6738fd4

Browse files
author
contra
committed
Merge pull request #122 from Klowner/fix-writestream-callbacks
Change writeStream callbacks from cb to complete
2 parents a28ba42 + 8f93a48 commit 6738fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dest/writeContents/writeStream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ function writeStream(writePath, file, cb) {
3333

3434
// cleanup
3535
function complete(err) {
36-
file.contents.removeListener('error', cb);
37-
outStream.removeListener('error', cb);
36+
file.contents.removeListener('error', complete);
37+
outStream.removeListener('error', complete);
3838
outStream.removeListener('finish', success);
3939
cb(err);
4040
}

0 commit comments

Comments
 (0)