MCPcopy Create free account
hub / github.com/Waishnav/devspace / parseStatNumber

Function parseStatNumber

src/review-checkpoints.ts:180–184  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

178}
179
180function parseStatNumber(value: string | undefined): number {
181 if (!value || value === "-") return 0;
182 const parsed = Number(value);
183 return Number.isFinite(parsed) ? parsed : 0;
184}
185
186function fileType(
187 path: string,

Callers 1

parseNumstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected