diff --git a/packages/node_modules/@node-red/registry/lib/loader.js b/packages/node_modules/@node-red/registry/lib/loader.js index 110712814..c03d85878 100644 --- a/packages/node_modules/@node-red/registry/lib/loader.js +++ b/packages/node_modules/@node-red/registry/lib/loader.js @@ -66,7 +66,7 @@ function loadModuleTypeFiles(module, type) { moduleFn = parts.slice(0,nmi+2).join(path.sep); } if (!moduleFn) { - // shortcut - skip calling statSync on empty string + // shortcut - skip calling statSync on empty string break; // Module not found, don't attempt to load its nodes } try { @@ -372,7 +372,6 @@ function loadNodeSet(node) { } catch(err) { node.err = err; var stack = err.stack; - var message; if (stack) { var filePath = node.file; try { @@ -463,7 +462,6 @@ async function loadPlugin(plugin) { console.log(err); plugin.err = err; var stack = err.stack; - var message; if (stack) { var i = stack.indexOf(plugin.file); if (i > -1) { @@ -477,7 +475,7 @@ async function loadPlugin(plugin) { return plugin; } } -let invocation = 0 + function loadNodeSetList(nodes) { var promises = []; nodes.forEach(function(node) { @@ -499,7 +497,6 @@ function addModule(module) { if (!settings.available()) { throw new Error("Settings unavailable"); } - var nodes = []; var existingInfo = registry.getModuleInfo(module); if (existingInfo) { // TODO: nls