@engine9-io/input-tools 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/file/FileUtilities.js +3 -3
- package/package.json +1 -1
package/file/FileUtilities.js
CHANGED
|
@@ -190,7 +190,6 @@ Worker.prototype.fileToObjectStream = async function (options) {
|
|
|
190
190
|
|
|
191
191
|
debug(`Reading file ${filename} with encoding:`, encoding);
|
|
192
192
|
|
|
193
|
-
const head = null;
|
|
194
193
|
let transforms = [];
|
|
195
194
|
|
|
196
195
|
if (postfix === 'gz') {
|
|
@@ -270,13 +269,14 @@ Worker.prototype.fileToObjectStream = async function (options) {
|
|
|
270
269
|
},
|
|
271
270
|
flush(cb) {
|
|
272
271
|
// If there's no records at all, push a dummy record, and specify 0 records
|
|
272
|
+
// Don't push dummy records anymore -- legacy cruft
|
|
273
273
|
debug(`Completed reading file, records=${count}`);
|
|
274
|
-
if (count === 0) {
|
|
274
|
+
/* if (count === 0) {
|
|
275
275
|
const o = { _is_placeholder: true };
|
|
276
276
|
|
|
277
277
|
if (head) head.forEach((c) => { o[c] = null; });
|
|
278
278
|
this.push(o);
|
|
279
|
-
}
|
|
279
|
+
} */
|
|
280
280
|
cb();
|
|
281
281
|
},
|
|
282
282
|
});
|