mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 19:14:33 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -23,7 +23,9 @@ const listeners = new Set<(evt: AgentEventPayload) => void>();
|
||||
const runContextById = new Map<string, AgentRunContext>();
|
||||
|
||||
export function registerAgentRunContext(runId: string, context: AgentRunContext) {
|
||||
if (!runId) return;
|
||||
if (!runId) {
|
||||
return;
|
||||
}
|
||||
const existing = runContextById.get(runId);
|
||||
if (!existing) {
|
||||
runContextById.set(runId, { ...context });
|
||||
|
||||
Reference in New Issue
Block a user