mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
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:
parent
28f63ad83e
commit
94b7f89281
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue