Skip to content

Commit be523d0

Browse files
Add comments
1 parent 65ce92c commit be523d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libs/mcp/tasks/src/lib/mcp-task-registry.class.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ export class MCPTaskRegistry {
139139
taskFunction: IGlobalIndexedToken<GlobalFunctionToken>,
140140
taskStructure: IGlobalIndexedToken<GlobalStructureToken>,
141141
) {
142+
// extract task name
142143
const match = TASK_REGEX.exec(taskStructure.meta.display);
143144

145+
// return if no match - prevent errors when we don't really have a task
144146
if (match === null) {
145147
return;
146148
}

0 commit comments

Comments
 (0)