1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +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() private IEnumerable<RulesetInfo> getBestRulesetOrder()
{ {
IEnumerable<RulesetInfo> bestRulesetOrder = recommendedStarDifficulty.OrderByDescending(pair => pair.Value) IEnumerable<RulesetInfo> bestRulesetOrder = recommendedStarDifficulty.OrderByDescending(pair => pair.Value)
.Select(pair => pair.Key) .Select(pair => pair.Key);
.ToList();
List<RulesetInfo> orderedRulesets; List<RulesetInfo> orderedRulesets;