MCPcopy Create free account
hub / github.com/angular/dev-infra / readFileGracefully

Function readFileGracefully

github-actions/bazel/configure-remote/index.ts:50–56  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

48}
49
50async function readFileGracefully(filePath: string): Promise<string> {
51 try {
52 return await fs.promises.readFile(filePath, 'utf8');
53 } catch {
54 return '';
55 }
56}
57
58/** Extract the embeeded credential from the action. */
59function getEmbeddedCredential(): string {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected