mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 17:36:00 +00:00
json array writer fix
This commit is contained in:
@@ -30,12 +30,13 @@ class StringifyStream extends stream.Transform {
|
|||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
|
||||||
_flush() {
|
_flush(done) {
|
||||||
if (!this.wasRecord) {
|
if (!this.wasRecord) {
|
||||||
this.push('[]\n');
|
this.push('[]\n');
|
||||||
} else {
|
} else {
|
||||||
this.push('\n]\n');
|
this.push('\n]\n');
|
||||||
}
|
}
|
||||||
|
done();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user