Skip to content

Commit e1b91ea

Browse files
committed
Format
1 parent 9d95f3d commit e1b91ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/binary_parser.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,11 +916,13 @@ export class Parser {
916916
const start = ctx.generateTmpVariable();
917917
const cur = ctx.generateTmpVariable();
918918

919-
ctx.pushCode(`var ${start} = offset;`)
919+
ctx.pushCode(`var ${start} = offset;`);
920920
ctx.pushCode(`var ${cur} = 0;`);
921921
ctx.pushCode(`while (offset < buffer.length) {`);
922922
ctx.pushCode(`${cur} = buffer.readUInt8(offset);`);
923-
ctx.pushCode(`if (${pred}.call(this, ${cur}, buffer.slice(offset))) break;`);
923+
ctx.pushCode(
924+
`if (${pred}.call(this, ${cur}, buffer.slice(offset))) break;`
925+
);
924926
ctx.pushCode(`offset += 1;`);
925927
ctx.pushCode(`}`);
926928
ctx.pushCode(`${varName} = buffer.slice(${start}, offset);`);

0 commit comments

Comments
 (0)