mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
better usage of __isStreamHeader flag
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user