Skip to content

Commit 8f93a48

Browse files
committed
Change writeStream callbacks from cb to complete
1 parent a28ba42 commit 8f93a48

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)