mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:57:52 +08:00
Avoid calling ToList twice
This commit is contained in:
parent
4cd2e207ac
commit
49be4978bd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user