1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Avoid calling ToList twice

This commit is contained in:
Endrik Tombak 2020-12-03 19:53:41 +02:00
parent 4cd2e207ac
commit 49be4978bd

View File

@ -99,8 +99,7 @@ namespace osu.Game.Screens.Select
private IEnumerable<RulesetInfo> getBestRulesetOrder()
{
IEnumerable<RulesetInfo> bestRulesetOrder = recommendedStarDifficulty.OrderByDescending(pair => pair.Value)
.Select(pair => pair.Key)
.ToList();
.Select(pair => pair.Key);
List<RulesetInfo> orderedRulesets;