mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
fix comment
This commit is contained in:
parent
50ade83e4d
commit
7e5613cf2a
1 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
type HookDefinition,
|
||||
type HookConfig,
|
||||
createDebugLogger,
|
||||
HOOKS_CONFIG_FIELDS,
|
||||
} from '@qwen-code/qwen-code-core';
|
||||
import type {
|
||||
HooksManagementDialogProps,
|
||||
|
|
@ -86,7 +87,11 @@ function isValidHooksRecord(
|
|||
return false;
|
||||
}
|
||||
const record = hooks as Record<string, unknown>;
|
||||
for (const value of Object.values(record)) {
|
||||
for (const [key, value] of Object.entries(record)) {
|
||||
// Skip non-event configuration fields
|
||||
if (HOOKS_CONFIG_FIELDS.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
if (!Array.isArray(value)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue