Skip to content

Commit

Permalink
util: in supercomputer move nested check out
Browse files Browse the repository at this point in the history
 from loop.
  • Loading branch information
narekhovhannisyan committed Sep 18, 2023
1 parent 665ec13 commit 0754068
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/util/supercomputer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ export class Supercomputer {
);

await observatory.doInvestigationsWith(modelInstance);
}

if (areChildrenNested) {
this.impl.graph.children[this.olderChild.name].children[
childName
].impacts = observatory.getImpacts();
if (areChildrenNested) {
this.impl.graph.children[this.olderChild.name].children[
childName
].impacts = observatory.getImpacts();

return;
}
return;
}

this.impl.graph.children[this.olderChild.name].impacts =
Expand Down

0 comments on commit 0754068

Please sign in to comment.