From f5a64ff136a92901fdc0e172dc835de74aa40d19 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 26 Jul 2026 20:25:54 -0700 Subject: [PATCH] style(daemon): satisfy the curly rule in the NDJSON differential test Co-authored-by: Orca --- src/main/daemon/ndjson-differential.test.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/daemon/ndjson-differential.test.ts b/src/main/daemon/ndjson-differential.test.ts index fd5b8cf9a39..e239d30b0f8 100644 --- a/src/main/daemon/ndjson-differential.test.ts +++ b/src/main/daemon/ndjson-differential.test.ts @@ -37,10 +37,14 @@ function createLegacyParser( continue } buffer = next - if (!has) return + if (!has) { + return + } const line = buffer buffer = '' - if (line.length === 0) continue + if (line.length === 0) { + continue + } try { onMessage(JSON.parse(line)) } catch (e) { @@ -93,7 +97,9 @@ describe('ndjson parser parity with the pre-slice accumulator', () => { for (let m = 0; m < msgCount; m += 1) { let s = '' const len = Math.floor(rand() * 40) - for (let i = 0; i < len; i += 1) s += ALPHABET[Math.floor(rand() * ALPHABET.length)] + for (let i = 0; i < len; i += 1) { + s += ALPHABET[Math.floor(rand() * ALPHABET.length)] + } const msg = { method: 'pty.data', params: { id: `pty-${m}`, data: s, seq: m } } messages.push(msg) wire += `${JSON.stringify(msg)}\n`