From 34a68f1fac8d8e955971d1d6478b473017a82e10 Mon Sep 17 00:00:00 2001 From: oksanaphmn Date: Tue, 28 Apr 2026 13:26:45 +0300 Subject: [PATCH] chore: remove dead path substitution code in requestForRoute --- packages/superagent-wrapper/src/request.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/superagent-wrapper/src/request.ts b/packages/superagent-wrapper/src/request.ts index 10e69fd1..20d66316 100644 --- a/packages/superagent-wrapper/src/request.ts +++ b/packages/superagent-wrapper/src/request.ts @@ -198,13 +198,6 @@ export const requestForRoute = (params: h.RequestType): PatchedRequest => { const reqProps = route.request.encode(params); - let path = route.path; - for (const key in reqProps.params) { - if (reqProps.params.hasOwnProperty(key)) { - path = path.replace(`{${key}}`, reqProps.params[key]); - } - } - let request = requestFactory(route, reqProps.params).query(reqProps.query); const headers = reqProps.headers ?? {};