MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getUpdatedInputOrFallback

Function getUpdatedInputOrFallback

src/utils/permissions/permissions.ts:1477–1486  ·  view source on GitHub ↗

* Extract updatedInput from a permission result, falling back to the original input. * Handles the case where some PermissionResult variants don't have updatedInput.

(
  permissionResult: PermissionResult,
  fallback: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

1475 * Handles the case where some PermissionResult variants don't have updatedInput.
1476 */
1477function getUpdatedInputOrFallback(
1478 permissionResult: PermissionResult,
1479 fallback: Record<string, unknown>,
1480): Record<string, unknown> {
1481 return (
1482 ('updatedInput' in permissionResult
1483 ? permissionResult.updatedInput
1484 : undefined) ?? fallback
1485 )
1486}
1487

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected