mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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;
|
var format = highResolution ? HighResolutionIconFileFormat : IconFileFormat;
|
||||||
|
|
||||||
type ??= string.Empty;
|
type ??= string.Empty;
|
||||||
if (type.Length > 0 && !type.EndsWith("/"))
|
if (type.Length > 0 && !type.EndsWith('/'))
|
||||||
type += "/";
|
type += '/';
|
||||||
|
|
||||||
return string.Format(format, iconId / 1000, type, iconId);
|
return string.Format(format, iconId / 1000, type, iconId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue