Fix IDE0110
This commit is contained in:
committed by
Pavel Penev
parent
8a285f9b19
commit
1ce9acd442
@@ -375,7 +375,7 @@ dotnet_diagnostic.IDE0100.severity = warning
|
|||||||
|
|
||||||
# IDE0110 Remove unnecessary discard
|
# IDE0110 Remove unnecessary discard
|
||||||
# No options
|
# No options
|
||||||
dotnet_diagnostic.IDE0110.severity = silent # Requires C# 9 - TODO Consider enabling
|
dotnet_diagnostic.IDE0110.severity = warning
|
||||||
|
|
||||||
### Miscellaneous Rules
|
### Miscellaneous Rules
|
||||||
### https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/miscellaneous-rules
|
### https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/miscellaneous-rules
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace OpenRA.Network
|
|||||||
{
|
{
|
||||||
switch (value.ToFluentType())
|
switch (value.ToFluentType())
|
||||||
{
|
{
|
||||||
case FluentNumber _:
|
case FluentNumber:
|
||||||
return FluentArgumentType.Number;
|
return FluentArgumentType.Number;
|
||||||
default:
|
default:
|
||||||
return FluentArgumentType.String;
|
return FluentArgumentType.String;
|
||||||
|
|||||||
Reference in New Issue
Block a user