diff options
| author | Bryan Morgan <[email protected]> | 2025-05-31 16:50:19 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-31 16:50:19 -0400 |
| commit | b2289234463eccdd95e337ee52f2fc256e4f4547 (patch) | |
| tree | 584bc26c423da3c97d8a1b63864ccce38c6f02bf /packages/core/src | |
| parent | 53bf77849760593cc9c1af9a4fb110a1a74acc4f (diff) | |
cleanup: removed duplicate check from Config.registerCoreTool() (#656)
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/config/config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index d918de04..a4b47cdd 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -243,7 +243,7 @@ export function createToolRegistry(config: Config): ToolRegistry { // eslint-disable-next-line @typescript-eslint/no-explicit-any const registerCoreTool = (ToolClass: any, ...args: unknown[]) => { // check both the tool name (.Name) and the class name (.name) - if (!tools || tools.has(ToolClass.Name) || tools.has(ToolClass.name)) { + if (!tools || tools.has(ToolClass.Name)) { registry.registerTool(new ToolClass(...args)); } }; |
