From 0754068cf58016522b6b9317d1753274abc415e9 Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Mon, 18 Sep 2023 13:26:42 +0400 Subject: [PATCH] util: in supercomputer move nested check out from loop. --- src/util/supercomputer.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/util/supercomputer.ts b/src/util/supercomputer.ts index 1235adf65..26e9902e8 100644 --- a/src/util/supercomputer.ts +++ b/src/util/supercomputer.ts @@ -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 =