From 7e84ed42e9e1654aa001accaf0442f8d16868ddf Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Fri, 13 Oct 2023 02:55:40 -0400 Subject: [PATCH] Code cleanup --- src/bundle/otto/windows.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bundle/otto/windows.ts b/src/bundle/otto/windows.ts index 81ecb18..f4c95ba 100644 --- a/src/bundle/otto/windows.ts +++ b/src/bundle/otto/windows.ts @@ -54,13 +54,11 @@ export class BundleOttoWindows extends BundleOtto { const d = new Uint8Array(4); const v = new DataView(d.buffer, d.byteOffset, d.byteLength); const f = await open(projector.path, 'r'); - let r; try { - r = await f.read(d, 0, 4, 60); + let r = await f.read(d, 0, 4, 60); if (r.bytesRead < 4) { throw new Error('Unknown format'); } - r = await f.read(d, 0, 2, v.getUint32(0, true) + 4); if (r.bytesRead < 2) { throw new Error('Unknown format');