test(sdk): remove redundant fake transport cast

This commit is contained in:
Peter Steinberger
2026-04-30 01:54:58 +01:00
parent 3bd6b54f0b
commit 80ec402d0f

View File

@@ -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;
}