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:
parent
1a8ab77f21
commit
8e1f8c28bd
@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user