From ec71cfeef60204622894dc9ad5c0783c470a9084 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 23 Feb 2024 21:35:27 -0800 Subject: [PATCH] simplify --- src/util/warcwriter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/warcwriter.ts b/src/util/warcwriter.ts index ddf79d37..54012e6c 100644 --- a/src/util/warcwriter.ts +++ b/src/util/warcwriter.ts @@ -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));