From 6e56c06cec5b7cb018241c1aa63512c485204c44 Mon Sep 17 00:00:00 2001 From: homura Date: Thu, 16 Nov 2023 13:55:26 +0800 Subject: [PATCH] refactor(rpc): prettier --- packages/rpc/src/method.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);