test(sdk): remove redundant fake transport cast · openclaw/openclaw@80ec402
steipete
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ class FakeTransport implements OpenClawTransport {
|
30 | 30 | this.calls.push({ method, params, options }); |
31 | 31 | const response = this.responses[method]; |
32 | 32 | if (typeof response === "function") { |
33 | | -return (await (response as FakeResponseHandler)(params, options, this)) as T; |
| 33 | +return (await response(params, options, this)) as T; |
34 | 34 | } |
35 | 35 | return response as T; |
36 | 36 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。