Skip to content

Commit

Permalink
fix(core): always call callback in DefaultStream._flush
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Dec 20, 2020
1 parent 04a1cc3 commit 43bee16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/yarnpkg-core/sources/miscUtils.ts
Expand Up @@ -223,9 +223,9 @@ export class DefaultStream extends Transform {
}

_flush(cb: any) {
if (this.active && this.ifEmpty.length > 0) {
cb(null, this.ifEmpty);
}
// if (this.active && this.ifEmpty.length > 0) {
cb(null, this.ifEmpty);
// }
}
}

Expand Down

0 comments on commit 43bee16

Please sign in to comment.