Fix CA1866: Use 'string.EndsWith(char)' instead of 'string.EndsWith(string)' when you have a string with a single char

This commit is contained in:
Haselnussbomber 2025-10-24 04:13:26 +02:00
parent 28f63ad83e
commit 94b7f89281
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -113,8 +113,8 @@ internal sealed partial class TextureManager
var format = highResolution ? HighResolutionIconFileFormat : IconFileFormat;
type ??= string.Empty;
if (type.Length > 0 && !type.EndsWith("/"))
type += "/";
if (type.Length > 0 && !type.EndsWith('/'))
type += '/';
return string.Format(format, iconId / 1000, type, iconId);
}