linter, please like me

This commit is contained in:
Astavie 2020-07-07 16:38:33 +02:00
parent 1c2ccd3582
commit fbe04c94aa
1 changed files with 4 additions and 3 deletions

View File

@ -962,7 +962,8 @@ export function capitalizeFirstLetter(str) {
export function formatItemsPerSecond(speed, double = false, separator = T.global.decimalSeparator) {
return speed === 1.0
? T.ingame.buildingPlacement.infoTexts.oneItemPerSecond
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond
.replace("<x>", round2Digits(speed).toString().replace(".", separator)) +
(double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "");
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond.replace(
"<x>",
round2Digits(speed).toString().replace(".", separator)
) + (double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "");
}