1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 04:42:58 +08:00

Use default value to denote no play date, rather than null

This commit is contained in:
Dean Herbert 2021-07-20 19:05:08 +09:00
parent 1a8ab77f21
commit 8e1f8c28bd
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ namespace osu.Game.Tests.Visual.Ranking
} }
[Test] [Test]
public void TestWithNullDate() public void TestWithDefaultDate()
{ {
AddStep("show autoplay score", () => AddStep("show autoplay score", () =>
{ {
@ -69,7 +69,7 @@ namespace osu.Game.Tests.Visual.Ranking
{ {
Mods = mods, Mods = mods,
Beatmap = beatmap, Beatmap = beatmap,
Date = null, Date = default,
}); });
}); });

View File

@ -227,8 +227,8 @@ namespace osu.Game.Screens.Ranking.Expanded
} }
}); });
if (score.Date != null) if (score.Date != default)
AddInternal(new PlayedOnText(score.Date.Value)); AddInternal(new PlayedOnText(score.Date));
if (score.Mods.Any()) if (score.Mods.Any())
{ {