This commit is contained in:
Ilya Kreymer 2024-02-23 21:35:27 -08:00
parent 34069eaaf9
commit ec71cfeef6

View file

@ -86,7 +86,7 @@ export class WARCWriter implements IndexerOffsetLength {
this.filename = this._initNewFile();
}
let fh: Writable | null = this.fh;
let fh = this.fh;
if (!fh) {
fh = fs.createWriteStream(path.join(this.archivesDir, this.filename));