Skip to content

Commit 8c23fcc

Browse files
committed
style(voice-call): format bounded log reader
1 parent 8059651 commit 8c23fcc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎extensions/voice-call/src/cli-call-log.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ function readJsonlTailSync(
117117
let startsAtRecordBoundary = start === 0;
118118
if (start > 0) {
119119
const prefix = Buffer.alloc(1);
120-
startsAtRecordBoundary =
121-
fs.readSync(fd, prefix, 0, 1, start - 1) === 1 && prefix[0] === 0x0a;
120+
startsAtRecordBoundary = fs.readSync(fd, prefix, 0, 1, start - 1) === 1 && prefix[0] === 0x0a;
122121
}
123122
const buf = Buffer.alloc(length);
124123
let bytesRead = 0;
@@ -375,10 +374,11 @@ export function registerVoiceCallLogs(params: {
375374
const last = parseCliInteger(options.last, "--last", { min: 1 });
376375

377376
if (fs.existsSync(file) && path.basename(file) !== "calls.jsonl") {
378-
const { text: content, omittedLeadingBytes, droppedLeadingBytes } = readJsonlTailSync(
379-
file,
380-
VOICE_CALL_CLI_MAX_JSONL_TAIL_BYTES,
381-
);
377+
const {
378+
text: content,
379+
omittedLeadingBytes,
380+
droppedLeadingBytes,
381+
} = readJsonlTailSync(file, VOICE_CALL_CLI_MAX_JSONL_TAIL_BYTES);
382382
warnJsonlCappedLeadingOmission({
383383
omittedLeadingBytes,
384384
droppedLeadingBytes,

0 commit comments

Comments
 (0)