Fix CA1310, CA1311

This commit is contained in:
RoosterDragon
2023-03-12 15:44:49 +00:00
committed by Matthias Mailänder
parent d83e579dfe
commit 285443f10f
43 changed files with 80 additions and 67 deletions

View File

@@ -86,9 +86,9 @@ namespace OpenRA
{
// Always load english strings to provide a fallback for missing translations.
// It is important to load the english files first so the chosen language's files can override them.
var paths = translations.Where(t => t.EndsWith("en.ftl")).ToHashSet();
var paths = translations.Where(t => t.EndsWith("en.ftl", StringComparison.Ordinal)).ToHashSet();
foreach (var t in translations)
if (t.EndsWith($"{language}.ftl"))
if (t.EndsWith($"{language}.ftl", StringComparison.Ordinal))
paths.Add(t);
foreach (var path in paths)