diff --git a/src/adapter/chrome.ts b/src/adapter/chrome.ts index 600f636..ebfe409 100644 --- a/src/adapter/chrome.ts +++ b/src/adapter/chrome.ts @@ -67,16 +67,14 @@ export const createChromeHandler = ( sendResponse({ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - error: transformer.output.serialize( - getErrorShape({ - config: router._def._config, - error, - type: method, - path: params.path, - input: params.input, - ctx, - }), - ), + error: getErrorShape({ + config: router._def._config, + error, + type: method, + path: params.path, + input: params.input, + ctx, + }), }); }; diff --git a/src/adapter/window.ts b/src/adapter/window.ts index b8a82db..7d7c2c3 100644 --- a/src/adapter/window.ts +++ b/src/adapter/window.ts @@ -73,16 +73,14 @@ export const createWindowHandler = ( sendResponse({ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - error: transformer.output.serialize( - getErrorShape({ - config: router._def._config, - error, - type: method, - path: params.path, - input: params.input, - ctx, - }), - ), + error: getErrorShape({ + config: router._def._config, + error, + type: method, + path: params.path, + input: params.input, + ctx, + }), }); };