MCPcopy Create free account
hub / github.com/ShipSecAI/studio / safeReadText

Function safeReadText

worker/src/components/github/remove-org-membership.ts:418–424  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

416}
417
418async function safeReadText(response: Response): Promise<string> {
419 try {
420 return await response.text();
421 } catch (error) {
422 return `<<unable to read body: ${(error as Error).message}>>`;
423 }
424}
425
426componentRegistry.register(definition);

Callers 3

executeFunction · 0.85
resolveLoginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected