Fix IDE0057
This commit is contained in:
committed by
Pavel Penev
parent
5254348819
commit
023d80b94d
@@ -231,7 +231,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
|
||||
static string Truncate(string s, int maxLength)
|
||||
{
|
||||
return s.Length <= maxLength ? s : s.Substring(0, maxLength);
|
||||
return s.Length <= maxLength ? s : s[..maxLength];
|
||||
}
|
||||
|
||||
static string GetTileset(IniSection mapSection)
|
||||
|
||||
Reference in New Issue
Block a user