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 { ...@@ -119,7 +119,7 @@ class CategoryDamage {
for (const [, c] of this.components) { for (const [, c] of this.components) {
await c.computeDamage(payload); await c.computeDamage(payload);
this.totalDamage = await this.totalDamage.add(c.damage); this.totalDamage = await this.totalDamage.add(c.damage);
}; }
return Promise.resolve(this.totalDamage); return Promise.resolve(this.totalDamage);
} }
......
...@@ -134,8 +134,8 @@ async function normaliseDamages (meetingScenarios) { ...@@ -134,8 +134,8 @@ async function normaliseDamages (meetingScenarios) {
}; };
normalisedDamages[d.damageEndpoint] = normalisedDamages[d.damageEndpoint] || {}; normalisedDamages[d.damageEndpoint] = normalisedDamages[d.damageEndpoint] || {};
normalisedDamages[d.damageEndpoint][d.meetingScenario] = x; normalisedDamages[d.damageEndpoint][d.meetingScenario] = x;
}; }
}; }
return Promise.resolve(normalisedDamages); return Promise.resolve(normalisedDamages);
} }
......
Supports Markdown
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