test: fix gateway session lint · openclaw/openclaw@a29233c
shakkernerd
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -389,13 +389,13 @@ async function directSessionReq<TPayload = unknown>(
|
389 | 389 | broadcastToConnIds: vi.fn(), |
390 | 390 | getSessionEventSubscriberConnIds: () => new Set<string>(), |
391 | 391 | loadGatewayModelCatalog: async () => piSdkMock.models, |
392 | | - ...(opts?.context ?? {}), |
| 392 | + ...opts?.context, |
393 | 393 | } as never, |
394 | 394 | client: opts?.client ?? null, |
395 | 395 | isWebchatConnect: opts?.isWebchatConnect ?? (() => false), |
396 | 396 | }); |
397 | 397 | if (!result) { |
398 | | -throw new Error(`${String(method)} did not respond`); |
| 398 | +throw new Error(`${method} did not respond`); |
399 | 399 | } |
400 | 400 | return result; |
401 | 401 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。