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