1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +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]
public void TestWithNullDate()
public void TestWithDefaultDate()
{
AddStep("show autoplay score", () =>
{
@ -69,7 +69,7 @@ namespace osu.Game.Tests.Visual.Ranking
{
Mods = mods,
Beatmap = beatmap,
Date = null,
Date = default,
});
});

View File

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