Revert nullability change

This commit is contained in:
Dean Herbert
2021-07-20 19:03:29 +09:00
parent 662822a40c
commit 1a8ab77f21
5 changed files with 7 additions and 18 deletions

View File

@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using JetBrains.Annotations;
@ -227,13 +226,11 @@ namespace osu.Game.Tests.Visual.Playlists
private MultiplayerScore createUserResponse([NotNull] ScoreInfo userScore)
{
Debug.Assert(userScore.Date != null);
var multiplayerUserScore = new MultiplayerScore
{
ID = (int)(userScore.OnlineScoreID ?? currentScoreId++),
Accuracy = userScore.Accuracy,
EndedAt = userScore.Date.Value,
EndedAt = userScore.Date,
Passed = userScore.Passed,
Rank = userScore.Rank,
Position = 200,
@ -254,7 +251,7 @@ namespace osu.Game.Tests.Visual.Playlists
{
ID = currentScoreId++,
Accuracy = userScore.Accuracy,
EndedAt = userScore.Date.Value,
EndedAt = userScore.Date,
Passed = true,
Rank = userScore.Rank,
MaxCombo = userScore.MaxCombo,
@ -272,7 +269,7 @@ namespace osu.Game.Tests.Visual.Playlists
{
ID = currentScoreId++,
Accuracy = userScore.Accuracy,
EndedAt = userScore.Date.Value,
EndedAt = userScore.Date,
Passed = true,
Rank = userScore.Rank,
MaxCombo = userScore.MaxCombo,