mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 06:21:26 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -147,7 +147,9 @@ describe("agentCommand", () => {
|
||||
|
||||
const assistantEvents: Array<{ runId: string; text?: string }> = [];
|
||||
const stop = onAgentEvent((evt) => {
|
||||
if (evt.stream !== "assistant") return;
|
||||
if (evt.stream !== "assistant") {
|
||||
return;
|
||||
}
|
||||
assistantEvents.push({
|
||||
runId: evt.runId,
|
||||
text: typeof evt.data?.text === "string" ? evt.data.text : undefined,
|
||||
|
||||
Reference in New Issue
Block a user