mirror of https://github.com/node-red/node-red.git
Remove unused variables
parent
d0585801e4
commit
7363ce0c77
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue