MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getIfCondition

Function getIfCondition

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

Source from the content-addressed store, hash-verified

1867 // Helper to extract the `if` condition from a hook for dedup keys.
1868 // Hooks with different `if` conditions are distinct even if otherwise identical.
1869 const getIfCondition = (hook: { if?: string }): string => hook.if ?? ''
1870
1871 const uniqueCommandHooks = Array.from(
1872 new Map(

Callers 1

getMatchingHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected