enable eslint rule curly: multi-line

https://eslint.org/docs/latest/rules/curly#multi-line
This commit is contained in:
Scott Anderson
2025-08-07 21:37:57 -04:00
parent d1b5c80ccd
commit 91974aa906
9 changed files with 39 additions and 19 deletions
+4 -2
View File
@@ -112,13 +112,15 @@ class SAMTargetingSystem {
if (
a.unit.type() === UnitType.HydrogenBomb &&
b.unit.type() !== UnitType.HydrogenBomb
)
) {
return -1;
}
if (
a.unit.type() !== UnitType.HydrogenBomb &&
b.unit.type() === UnitType.HydrogenBomb
)
) {
return 1;
}
return 0;
})[0] ?? null