Fix lint errors

This commit is contained in:
Owen
2025-10-05 15:22:54 -07:00
parent 9649d9a46b
commit e5f4da9a99
14 changed files with 23 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ export type ExitNodePingResult = {
wasPreviouslyConnected: boolean;
};
let numTimesLimitExceededForId: Record<string, number> = {};
const numTimesLimitExceededForId: Record<string, number> = {};
export const handleNewtRegisterMessage: MessageHandler = async (context) => {
const { message, client, sendToClient } = context;
@@ -323,7 +323,7 @@ export const handleNewtRegisterMessage: MessageHandler = async (context) => {
const hcHeadersParse = target.hcHeaders
? JSON.parse(target.hcHeaders)
: null;
let hcHeadersSend: { [key: string]: string } = {};
const hcHeadersSend: { [key: string]: string } = {};
if (hcHeadersParse) {
hcHeadersParse.forEach(
(header: { name: string; value: string }) => {

View File

@@ -102,7 +102,7 @@ export async function removeTargets(
});
const healthCheckTargets = targets.map((target) => {
return target.targetId
return target.targetId;
});
await sendToClient(newtId, {