diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 01:09:39 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 01:09:39 +0900 |
| commit | 61e45e60d699ed1ca46f94a8f181c92a940317c6 (patch) | |
| tree | 2892d9773c5a8e367e1e58cdb1e88d9c6ad3fe6d /packages/cli/src/ndjson.ts | |
| parent | 63c7e64532e85e0bbdd6d9ac6825d8f86be98e7a (diff) | |
| parent | 727c98c9dae516a2070eb950410314380a20c974 (diff) | |
| download | dispatch-61e45e60d699ed1ca46f94a8f181c92a940317c6.tar.gz dispatch-61e45e60d699ed1ca46f94a8f181c92a940317c6.zip | |
Merge branch 'feature/indent-change' into dev
Diffstat (limited to 'packages/cli/src/ndjson.ts')
| -rw-r--r-- | packages/cli/src/ndjson.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/cli/src/ndjson.ts b/packages/cli/src/ndjson.ts index 57093c1..5902354 100644 --- a/packages/cli/src/ndjson.ts +++ b/packages/cli/src/ndjson.ts @@ -6,13 +6,13 @@ */ export interface SplitResult { - readonly lines: readonly string[]; - readonly rest: string; + readonly lines: readonly string[]; + readonly rest: string; } export function splitNdjsonLines(buffer: string): SplitResult { - const parts = buffer.split("\n"); - const rest = parts[parts.length - 1] ?? ""; - const lines = parts.slice(0, -1).filter((l) => l.length > 0); - return { lines, rest }; + const parts = buffer.split("\n"); + const rest = parts[parts.length - 1] ?? ""; + const lines = parts.slice(0, -1).filter((l) => l.length > 0); + return { lines, rest }; } |
