Improve some String.Split calls.

This commit is contained in:
RoosterDragon
2024-11-13 18:53:34 +00:00
committed by Pavel Penev
parent cf7f57252e
commit bf7f81b7fe
6 changed files with 7 additions and 7 deletions

View File

@@ -304,7 +304,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var httpResponseMessage = await client.GetAsync(download.MirrorList);
var result = await httpResponseMessage.Content.ReadAsStringAsync();
var mirrorList = result.Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
var mirrorList = result.Split('\n', StringSplitOptions.RemoveEmptyEntries);
DownloadUrl(mirrorList.Random(new MersenneTwister()));
}
catch (Exception e)