Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Oct 13, 2023
1 parent 66b0d00 commit 7e84ed4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bundle/otto/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7e84ed4

Please sign in to comment.