Fix IDE0071
This commit is contained in:
committed by
Pavel Penev
parent
837c70f857
commit
3402031399
@@ -198,6 +198,9 @@ dotnet_diagnostic.IDE0060.severity = warning
|
||||
# Use expression body for local functions.
|
||||
dotnet_diagnostic.IDE0061.severity = warning
|
||||
|
||||
# Simplify interpolation.
|
||||
dotnet_diagnostic.IDE0071.severity = warning
|
||||
|
||||
# Naming rule violation.
|
||||
dotnet_diagnostic.IDE1006.severity = warning
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace OpenRA
|
||||
return obj is Hotkey o && (Hotkey?)o == this;
|
||||
}
|
||||
|
||||
public override string ToString() { return $"{Key} {Modifiers.ToString("F")}"; }
|
||||
public override string ToString() { return $"{Key} {Modifiers:F}"; }
|
||||
|
||||
public string DisplayString()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user