mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-14 18:57:03 +00:00
enable eslint rule curly: multi-line
https://eslint.org/docs/latest/rules/curly#multi-line
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user