Skip to content

Commit

Permalink
style: inline unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed May 29, 2024
1 parent cb37098 commit b70edd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/internal/buildRequestUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ export const buildRequestUrl = (
args: Record<string, string | number> = {},
) => {
const concatenated = `${baseUrl}/${endpointUrl}`;
const withoutDoubleSlashes = concatenated.replaceAll(/([^:]\/)\/+/g, "$1");

let withArgs = withoutDoubleSlashes;
let withArgs = concatenated.replaceAll(/([^:]\/)\/+/g, "$1");

const queryParamValues: Record<string, string> = {};

Expand Down

0 comments on commit b70edd4

Please sign in to comment.