continue logic

This commit is contained in:
Kyle Spearrin 2018-11-30 09:49:08 -05:00
parent 2a960da31c
commit 5609fecbce
1 changed files with 9 additions and 8 deletions

View File

@ -14,7 +14,9 @@ export class ServiceUtils {
const partName = parts[partIndex];
for (let i = 0; i < nodeTree.length; i++) {
if (nodeTree[i].node.name === parts[partIndex]) {
if (nodeTree[i].node.name !== parts[partIndex]) {
continue;
}
if (end && nodeTree[i].node.id !== obj.id) {
// Another node with the same name.
nodeTree.push(new TreeNode(obj, partName, parent));
@ -24,7 +26,6 @@ export class ServiceUtils {
obj, nodeTree[i].node, delimiter);
return;
}
}
if (nodeTree.filter((n) => n.node.name === partName).length === 0) {
if (end) {