1
0
forked from mirrors/0ad

Fix eslint rule 'no-extra-semi'

eslint --no-config-lookup --fix --rule '"no-extra-semi": 1'

Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-05-03 11:15:43 +02:00
parent 24c47c81c7
commit ddba1ceabd
4 changed files with 5 additions and 5 deletions
@@ -2,7 +2,7 @@ function WeightedList()
{
this.elements = new Map();
this.totalWeight = 0;
};
}
WeightedList.prototype.length = function()
{
@@ -54,5 +54,5 @@ class PhaseIdent
phaseIcon.sprite = "stretched:" + this.page.IconPath + prodPhaseTemplate.icon;
phaseIcon.tooltip = getEntityNamesFormatted(prodPhaseTemplate);
};
}
}
@@ -46,7 +46,7 @@ class TreeSection
phaseIcon.sprite = "stretched:" + this.page.IconPath + prodPhaseTemplate.icon;
phaseIcon.tooltip = getEntityNamesFormatted(prodPhaseTemplate);
};
}
onTrainerSectionWidthChange(trainerSectionWidth, trainerSectionVisible)
{
@@ -75,6 +75,6 @@ class TreeSection
size += rowHeight * (phases * idx - (idx - 1) * idx / 2); // phase rows (phase-currphase+1 per row)
return size;
};
}
}
@@ -323,7 +323,7 @@ function GetUpgradedTemplate(playerId, templateName)
template = cmpTemplateManager.GetTemplate(templateName);
}
return templateName;
};
}
Engine.RegisterGlobal("GetUpgradedTemplate", GetUpgradedTemplate);
Engine.RegisterGlobal("ChangeEntityTemplate", ChangeEntityTemplate);