mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
chore: remove redundant code in unregister_toolgroup (#3092)
# What does this PR do? removes redundant code ## Test Plan ci
This commit is contained in:
parent
a4bad6c0b4
commit
8faff92591
1 changed files with 1 additions and 4 deletions
|
@ -124,10 +124,7 @@ class ToolGroupsRoutingTable(CommonRoutingTableImpl, ToolGroups):
|
||||||
return toolgroup
|
return toolgroup
|
||||||
|
|
||||||
async def unregister_toolgroup(self, toolgroup_id: str) -> None:
|
async def unregister_toolgroup(self, toolgroup_id: str) -> None:
|
||||||
tool_group = await self.get_tool_group(toolgroup_id)
|
await self.unregister_object(await self.get_tool_group(toolgroup_id))
|
||||||
if tool_group is None:
|
|
||||||
raise ToolGroupNotFoundError(toolgroup_id)
|
|
||||||
await self.unregister_object(tool_group)
|
|
||||||
|
|
||||||
async def shutdown(self) -> None:
|
async def shutdown(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue