mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:48:26 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -4,7 +4,9 @@ export function buildToolSummaryMap(tools: AgentTool[]): Record<string, string>
|
||||
const summaries: Record<string, string> = {};
|
||||
for (const tool of tools) {
|
||||
const summary = tool.description?.trim() || tool.label?.trim();
|
||||
if (!summary) continue;
|
||||
if (!summary) {
|
||||
continue;
|
||||
}
|
||||
summaries[tool.name.toLowerCase()] = summary;
|
||||
}
|
||||
return summaries;
|
||||
|
||||
Reference in New Issue
Block a user