Prefer fallthrough over or and newline

This commit is contained in:
Cj
2025-08-11 14:08:59 -04:00
parent 1474d2b799
commit 9bd5c2a401
2 changed files with 6 additions and 3 deletions
@@ -176,7 +176,8 @@ public class BotEquipmentModGenerator(
);
switch (plateSlotFilteringOutcome.Result)
{
case Result.UNKNOWN_FAILURE or Result.NO_DEFAULT_FILTER:
case Result.UNKNOWN_FAILURE:
case Result.NO_DEFAULT_FILTER:
if (logger.IsLogEnabled(LogLevel.Debug))
{
logger.Debug(
@@ -149,7 +149,8 @@ public class DurabilityLimitsHelper(
{
switch (botRole)
{
case null or "default":
case null
or "default":
return _botConfig.Durability.Default.Weapon.LowestMax;
case "pmc":
return _botConfig.Durability.Pmc.Weapon.LowestMax;
@@ -167,7 +168,8 @@ public class DurabilityLimitsHelper(
{
switch (botRole)
{
case null or "default":
case null:
case "default":
return _botConfig.Durability.Default.Weapon.HighestMax;
case "pmc":
return _botConfig.Durability.Pmc.Weapon.HighestMax;