fix(sdk): remove redundant test cast

This commit is contained in:
Peter Steinberger
2026-04-30 01:59:06 +01:00
parent 3a29bf0e00
commit 408815cbe4

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