MCPcopy Create free account
hub / github.com/block/buzz / trimTrailingEmptyLines

Function trimTrailingEmptyLines

desktop/src/features/agents/ui/agentSessionFileRead.ts:150–156  ·  view source on GitHub ↗
(lines: string[])

Source from the content-addressed store, hash-verified

148}
149
150function trimTrailingEmptyLines(lines: string[]) {
151 let end = lines.length;
152 while (end > 0 && lines[end - 1] === "") {
153 end -= 1;
154 }
155 return end === lines.length ? lines : lines.slice(0, end);
156}

Callers 2

buildSkillReadContentFunction · 0.85
parseReadFileOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected