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