Skip to content

Commit

Permalink
fix: declare const at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiAlexandruParaschiv committed Sep 5, 2024
1 parent 41137e9 commit 7cf207a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/support/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { JSDOM } from 'jsdom';
import { GetSecretValueCommand, SecretsManagerClient } from '@aws-sdk/client-secrets-manager';

URI.preventInvalidHostname = true;
const TIMEOUT = 3000;

/* c8 ignore next 3 */
export const { fetch } = process.env.HELIX_FETCH_FORCE_HTTP1
Expand All @@ -34,8 +35,6 @@ export async function getRUMUrl(url) {
return finalUrl.endsWith('/') ? finalUrl.slice(0, -1) : /* c8 ignore next */ finalUrl;
}

const TIMEOUT = 3000;

/**
* Fetches a URL with a specified timeout.
*
Expand Down

0 comments on commit 7cf207a

Please sign in to comment.