mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +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()
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user