MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / outerOperationBad

Function outerOperationBad

common/src/util/__tests__/error-abort.test.ts:515–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513 }
514
515 async function outerOperationBad(): Promise<string> {
516 try {
517 return await middleOperation()
518 } catch (error) {
519 // BAD: swallows abort error
520 return 'default value'
521 }
522 }
523
524 async function outerOperationGood(): Promise<string> {
525 try {

Callers 1

Calls 1

middleOperationFunction · 0.85

Tested by

no test coverage detected