mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:14:32 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -5,6 +5,8 @@ export function formatLinkUnderstandingBody(params: { body?: string; outputs: st
|
||||
}
|
||||
|
||||
const base = (params.body ?? "").trim();
|
||||
if (!base) return outputs.join("\n");
|
||||
if (!base) {
|
||||
return outputs.join("\n");
|
||||
}
|
||||
return `${base}\n\n${outputs.join("\n")}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user