From ce64f175c4069206e71d2eac158c71e893c02911 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Thu, 16 Dec 2021 18:29:01 -0800 Subject: [PATCH] zip: Fix NodeFileReader code style --- src/util/zip.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/zip.ts b/src/util/zip.ts index 526689b..119d8fd 100644 --- a/src/util/zip.ts +++ b/src/util/zip.ts @@ -11,22 +11,22 @@ export class NodeFileReader { } async close() { - const fh = await this.file + let fh = await this.file await fh.close() } async getLength() { if (this.length == undefined) { - const fh = await this.file - const stat = await fh.stat() + let fh = await this.file + let stat = await fh.stat() this.length = stat.size } return this.length } async read(offset: number, length: number) { - const fh = await this.file - const data = new Uint8Array(length) + let fh = await this.file + let data = new Uint8Array(length) await fh.read(data, 0, length, offset) return data }