Change var to let
This commit is contained in:
parent
66abc3bfac
commit
7dc7b09cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import {
|
||||||
} from "@/lib/constants";
|
} from "@/lib/constants";
|
||||||
|
|
||||||
export const getMCPProxyAddress = (config: InspectorConfig): string => {
|
export const getMCPProxyAddress = (config: InspectorConfig): string => {
|
||||||
var proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
|
let proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
|
||||||
if (proxyFullAddress) {
|
if (proxyFullAddress) {
|
||||||
proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
|
proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
|
||||||
return proxyFullAddress;
|
return proxyFullAddress;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue