mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
test(sdk): remove redundant fake transport cast
This commit is contained in:
@@ -30,7 +30,7 @@ class FakeTransport implements OpenClawTransport {
|
||||
this.calls.push({ method, params, options });
|
||||
const response = this.responses[method];
|
||||
if (typeof response === "function") {
|
||||
return (await (response as FakeResponseHandler)(params, options, this)) as T;
|
||||
return (await response(params, options, this)) as T;
|
||||
}
|
||||
return response as T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user