diff options
Diffstat (limited to 'js/files.ts')
-rw-r--r-- | js/files.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/files.ts b/js/files.ts index 98d18f0cf..b83a147e1 100644 --- a/js/files.ts +++ b/js/files.ts @@ -115,7 +115,7 @@ export function writeSync(rid: number, p: Uint8Array): number { * */ export async function write(rid: number, p: Uint8Array): Promise<number> { - let result = await sendAsyncMinimal(dispatch.OP_WRITE, rid, p); + const result = await sendAsyncMinimal(dispatch.OP_WRITE, rid, p); if (result < 0) { throw new Error("write error"); } else { |