mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 11:09:59 +00:00
fix(sdk): remove redundant test 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