1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix const reassignment

This commit is contained in:
Steve-Mcl 2022-07-11 10:27:30 +01:00
parent e14dd06a94
commit 55a94d659b

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];