Fix IDE0110

This commit is contained in:
RoosterDragon
2023-04-05 19:34:41 +01:00
committed by Pavel Penev
parent 8a285f9b19
commit 1ce9acd442
2 changed files with 2 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ dotnet_diagnostic.IDE0100.severity = warning
# IDE0110 Remove unnecessary discard
# No options
dotnet_diagnostic.IDE0110.severity = silent # Requires C# 9 - TODO Consider enabling
dotnet_diagnostic.IDE0110.severity = warning
### Miscellaneous Rules
### https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/miscellaneous-rules

View File

@@ -42,7 +42,7 @@ namespace OpenRA.Network
{
switch (value.ToFluentType())
{
case FluentNumber _:
case FluentNumber:
return FluentArgumentType.Number;
default:
return FluentArgumentType.String;