mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-09-20 12:13:38 +08:00
feat: consolidate course into 21 lessons
This commit is contained in:
@@ -159,7 +159,7 @@ def register_hook(event: str, callback):
|
||||
def trigger_hooks(event: str, *args):
|
||||
for callback in HOOKS[event]:
|
||||
result = callback(*args)
|
||||
if result is not None: # teaching shortcut: block this tool call
|
||||
if result is not None: # A hook result blocks this tool call.
|
||||
return result
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user