Prefer fallthrough over or and newline
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user