mirror of https://github.com/node-red/node-red.git
fix const reassignment
parent
e14dd06a94
commit
55a94d659b
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue