Skip to content

Commit

Permalink
style: 💄 remove console.logx
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed Apr 23, 2024
1 parent b64432f commit e926286
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class Engine extends SafeTransform {
if (data === null) {
this.nullWasSent = true;
this.nullWasSentError = createErrorWith(new Error('As a reminder, the end was recorded at this point'), currentIndex, this.funcName, this.params, chunk);
} else if (this.nullWasSent) {
} else if (this.nullWasSent && !this.errorWasSent) {
console.warn(createErrorWith(new Error('Oops, that\'s going to crash ?'), currentIndex, this.funcName, this.params, chunk));
console.warn(this.nullWasSentError);
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ describe('statements', () => {
res.push(chunk);
})
.on('end', () => {
console.log({res});
assert.equal(res.length, 0);
done();
});
Expand Down

0 comments on commit e926286

Please sign in to comment.