Skip to content

Commit

Permalink
fix format problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cinjospeh committed Jan 10, 2025
1 parent ee84fcb commit f3fef1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbgpt/agent/expand/tool_assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _get_tools_by_resource(resource: Optional[Resource]) -> Optional[List[BaseTo
tools.append(resource)
elif resource.type() == ResourceType.Pack:
for sub_res in resource.sub_resources:
res_list: List[BaseTool] = _get_tools_by_resource(sub_res)
res_list = _get_tools_by_resource(sub_res)
if res_list is not None and len(res_list) > 0:
for res in res_list:
tools.append(res)
Expand Down

0 comments on commit f3fef1a

Please sign in to comment.