From b70edd4af4af569de30c3e74b501a622638c763c Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Wed, 29 May 2024 13:37:02 +0100 Subject: [PATCH] style: inline unnecessary variable --- src/utils/internal/buildRequestUrl.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/internal/buildRequestUrl.ts b/src/utils/internal/buildRequestUrl.ts index 985598f..30dca27 100644 --- a/src/utils/internal/buildRequestUrl.ts +++ b/src/utils/internal/buildRequestUrl.ts @@ -4,9 +4,7 @@ export const buildRequestUrl = ( args: Record = {}, ) => { const concatenated = `${baseUrl}/${endpointUrl}`; - const withoutDoubleSlashes = concatenated.replaceAll(/([^:]\/)\/+/g, "$1"); - - let withArgs = withoutDoubleSlashes; + let withArgs = concatenated.replaceAll(/([^:]\/)\/+/g, "$1"); const queryParamValues: Record = {};