1
0
forked from mirrors/0ad

Fix eslint rule 'no-mixed-spaces-and-tabs'

Manual fixes needed for:
eslint --no-config-lookup --rule '"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"]'

Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-05-13 15:47:44 +02:00
parent 40f1340e60
commit bc2e16afc2
2 changed files with 3 additions and 3 deletions
@@ -662,7 +662,7 @@ g_SelectionPanels.Research = {
const sortedEntStates = unitEntStates.sort((a, b) =>
(!b.upgrade || !b.upgrade.isUpgrading) - (!a.upgrade || !a.upgrade.isUpgrading) ||
(!a.production ? 0 : a.production.queue.length) - (!b.production ? 0 : b.production.queue.length)
(!a.production ? 0 : a.production.queue.length) - (!b.production ? 0 : b.production.queue.length)
);
for (const state of sortedEntStates)
@@ -1361,8 +1361,8 @@ function TryConstructWall(player, cmpPlayer, controlAllUnits, cmd)
{
if (!(i == 0 && piece.template == cmd.wallSet.templates.tower && !cmd.startSnappedEntity))
{
error("[TryConstructWall] Expected last tower control group to be available, none found (1st pass, iteration " + i + ")");
break;
error("[TryConstructWall] Expected last tower control group to be available, none found (1st pass, iteration " + i + ")");
break;
}
}