fix: undefined dereference to ApiTool

This commit is contained in:
Yeuoly
2024-12-26 14:12:43 +08:00
parent 430af95b53
commit 51cc63d9ce
2 changed files with 5 additions and 3 deletions

View File

@ -151,8 +151,6 @@ class ApiToolProviderController(ToolProviderController):
"""
if len(self.tools) > 0:
return self.tools
if self.identity is None:
return None
tools: list[ApiTool] = []