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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user