Skip to content

Commit

Permalink
fix: empty change (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 12, 2019
1 parent 9fa66a4 commit 475e366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/watch.js
Expand Up @@ -148,6 +148,11 @@ async function watch(stateManager, mainIndex) {
changesConsumer._tasks.length
);
totalSequence = change.seq;
if (!change.id) {
// Can happen when NPM send an empty line (for example the hearthbeat) 🤷🏻‍
log.info('Change is null', change);
return;
}
changesConsumer.push(change);
});

Expand Down

0 comments on commit 475e366

Please sign in to comment.