Skip to content

Commit 6c13d91

Browse files
authored
refactor: return tool description directly instead of using f-string (#8557)
* refactor: simplify build_description function to return component description directly * fix: ensure component description returns an empty string if None
1 parent a1188e0 commit 6c13d91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/base/langflow/base/tools/component_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _get_input_type(input_: InputTypes):
3838

3939

4040
def build_description(component: Component) -> str:
41-
return f"{component.description}"
41+
return component.description or ""
4242

4343

4444
async def send_message_noop(

0 commit comments

Comments
 (0)