fix const reassignment

This commit is contained in:
Steve-Mcl 2022-07-11 10:27:30 +01:00
parent e14dd06a94
commit 55a94d659b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module.exports = function(RED) {
"use strict";
const crypto = require("crypto");
const targetCache = (function () {
const registry = { id: {}, name: {} };
let registry = { id: {}, name: {} }
function getIndex(/** @type {[LinkTarget]}*/ targets, id) {
for (let index = 0; index < (targets || []).length; index++) {
const element = targets[index];