Skip to content

Commit

Permalink
fix: 🐛 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed Oct 29, 2021
1 parent 6688b33 commit bde57e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/analytics/src/expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default async function expand(data, feed) {
const strm = this.buffer2stream(this.bufferID);
strm.once('end', () => this.store.close());
return feed.flow(strm);
}
}
this.store.close();
return feed.close();
}
Expand All @@ -179,7 +179,6 @@ export default async function expand(data, feed) {
this.buffer.push(core(id, value));
if (this.buffer.length >= size) {
const strm = this.buffer2stream(this.bufferID);
strm.once('end', () => this.store.close());
return feed.flow(strm);
}
return feed.end();
Expand Down

0 comments on commit bde57e7

Please sign in to comment.