diff --git a/packages/rpc/src/method.ts b/packages/rpc/src/method.ts index a46edd9f3..947fcdebe 100644 --- a/packages/rpc/src/method.ts +++ b/packages/rpc/src/method.ts @@ -62,9 +62,7 @@ export class Method { if (res.error) { throw new ResponseException(JSON.stringify(res.error)); } - return ( - this.#options.resultFormatters?.(res.result) ?? res.result - ); + return this.#options.resultFormatters?.(res.result) ?? res.result; }); clearTimeout(timeout);