diff options
| author | Adam Malczewski <[email protected]> | 2026-06-26 22:03:19 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-26 22:23:39 +0900 |
| commit | 727c98c9dae516a2070eb950410314380a20c974 (patch) | |
| tree | 52aa1022c54f11770be7e4e2a324f0a8b8b8deec /packages/cli/src/ndjson.ts | |
| parent | e59dc11f63b1df51142259bb2c406af8c9c8c2bb (diff) | |
| download | dispatch-727c98c9dae516a2070eb950410314380a20c974.tar.gz dispatch-727c98c9dae516a2070eb950410314380a20c974.zip | |
style: switch from tabs to 2-space indentation
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 }; } |
