mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix missing types logic.
missingTypes.length was greater than zero so the only way it can be zero immediately afterwards is if splice is called so move the zero check after the splice. Despite what istanbul reports this function is covered by the tests.
This commit is contained in:
parent
30a94bdaf5
commit
2f882913f0
@ -34,11 +34,11 @@ events.on('type-registered',function(type) {
|
|||||||
if (i != -1) {
|
if (i != -1) {
|
||||||
missingTypes.splice(i,1);
|
missingTypes.splice(i,1);
|
||||||
util.log("[red] Missing type registered: "+type);
|
util.log("[red] Missing type registered: "+type);
|
||||||
}
|
|
||||||
if (missingTypes.length === 0) {
|
if (missingTypes.length === 0) {
|
||||||
parseConfig();
|
parseConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user