MCPcopy
hub / github.com/codeaashu/claude-code / getIfCondition

Function getIfCondition

src/utils/hooks.ts:1733–1733  ·  view source on GitHub ↗
(hook: { if?: string })

Source from the content-addressed store, hash-verified

1731 // Helper to extract the `if` condition from a hook for dedup keys.
1732 // Hooks with different `if` conditions are distinct even if otherwise identical.
1733 const getIfCondition = (hook: { if?: string }): string => hook.if ?? ''
1734
1735 const uniqueCommandHooks = Array.from(
1736 new Map(

Callers 1

getMatchingHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected