mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:42:55 +08:00
Use new ToDictionary() overload without delegates
This commit is contained in:
parent
e935c49a98
commit
6fabbe2616
@ -245,8 +245,8 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
RulesetID = score.RulesetID,
|
RulesetID = score.RulesetID,
|
||||||
Passed = score.Passed,
|
Passed = score.Passed,
|
||||||
Mods = score.APIMods,
|
Mods = score.APIMods,
|
||||||
Statistics = score.Statistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
|
Statistics = score.Statistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
||||||
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
|
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,8 @@ namespace osu.Game.Scoring.Legacy
|
|||||||
{
|
{
|
||||||
OnlineID = score.OnlineID,
|
OnlineID = score.OnlineID,
|
||||||
Mods = score.APIMods,
|
Mods = score.APIMods,
|
||||||
Statistics = score.Statistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
|
Statistics = score.Statistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
||||||
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
|
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
||||||
ClientVersion = score.ClientVersion,
|
ClientVersion = score.ClientVersion,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user