1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Fix non-null ?? usage

This commit is contained in:
Dean Herbert 2019-12-13 20:35:34 +09:00
parent 0bbaf9b7fb
commit f349e7ff78

View File

@ -240,7 +240,7 @@ namespace osu.Game.Tests.Visual.UserInterface
private void changeRuleset(int? id) private void changeRuleset(int? id)
{ {
AddStep($"change ruleset to {(id.ToString() ?? "none")}", () => { Ruleset.Value = rulesets.AvailableRulesets.FirstOrDefault(r => r.ID == id); }); AddStep($"change ruleset to {(id?.ToString() ?? "none")}", () => { Ruleset.Value = rulesets.AvailableRulesets.FirstOrDefault(r => r.ID == id); });
waitForLoad(); waitForLoad();
} }