Fix warnings related to non-exhaustive pattern matching. (#31763)

old man shakes fist at modern syntax
This commit is contained in:
Mervill
2024-09-02 14:50:35 -07:00
committed by GitHub
parent 0c83b190b8
commit de13ff9663
3 changed files with 4 additions and 1 deletions

View File

@@ -165,6 +165,7 @@ public sealed partial class ParticleAcceleratorSystem
or ParticleAcceleratorPowerState.Level1
or ParticleAcceleratorPowerState.Level2 => LogImpact.Medium,
ParticleAcceleratorPowerState.Level3 => LogImpact.Extreme,
_ => throw new IndexOutOfRangeException(nameof(strength)),
};
_adminLogger.Add(LogType.Action, impact, $"{ToPrettyString(player):player} has set the strength of {ToPrettyString(uid)} to {strength}");