Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
async
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
measureExplainArchitecture
Function · 0.70
measureAddRoute
Function · 0.70
measureReviewDiff
Function · 0.70
runTelemetry
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected