better usage of __isStreamHeader flag

This commit is contained in:
Jan Prochazka
2022-02-17 13:23:56 +01:00
parent 29fa8445e2
commit 2946d8a1de
8 changed files with 22 additions and 36 deletions

View File

@@ -13,11 +13,7 @@ class EnsureStreamHeaderStream extends stream.Transform {
return;
}
if (
!chunk.__isStreamHeader &&
// TODO remove isArray test
!Array.isArray(chunk.columns)
) {
if (!chunk.__isStreamHeader) {
this.push({
__isStreamHeader: true,
__isComputedStructure: true,