Skip to content

Commit

Permalink
fix stream end
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Sep 27, 2016
1 parent 7809b18 commit de9d6e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function processFilePath(context, file, cb) {
context.onBoundary(file.type, feat, done);
})).once('error', function (err) {
return cb(err);
}).once('end', function () {
}).once('finish', function () {
debug(' -- ' + _chalk2.default.cyan('Parsed ' + file.path + ' and inserted ' + count + ' boundaries'));
cb();
});
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function processFilePath(context, file, cb) {
context.onBoundary(file.type, feat, done)
}))
.once('error', (err) => cb(err))
.once('end', () => {
.once('finish', () => {
debug(` -- ${chalk.cyan(`Parsed ${file.path} and inserted ${count} boundaries`)}`)
cb()
})
Expand Down

0 comments on commit de9d6e6

Please sign in to comment.