MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / readFileSafe

Function readFileSafe

src/telemetry.ts:48–54  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

46}
47
48async function readFileSafe(path: string): Promise<string> {
49 try {
50 return await readFile(path, "utf-8");
51 } catch {
52 return "";
53 }
54}
55
56
57/**

Callers 4

measureAddRouteFunction · 0.70
measureReviewDiffFunction · 0.70
runTelemetryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected