Commit 90b3627e authored by Matt Glorion's avatar Matt Glorion
Browse files

[UPD] 馃Ч massive js auto cleanup

parent 5169e14f
......@@ -119,7 +119,7 @@ class CategoryDamage {
for (const [, c] of this.components) {
await c.computeDamage(payload);
this.totalDamage = await this.totalDamage.add(c.damage);
};
}
return Promise.resolve(this.totalDamage);
}
......
......@@ -134,8 +134,8 @@ async function normaliseDamages (meetingScenarios) {
};
normalisedDamages[d.damageEndpoint] = normalisedDamages[d.damageEndpoint] || {};
normalisedDamages[d.damageEndpoint][d.meetingScenario] = x;
};
};
}
}
return Promise.resolve(normalisedDamages);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment