mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Add nullability assertion to appease CI
This commit is contained in:
parent
061f7d4857
commit
0372e38f57
@ -4,6 +4,7 @@
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
@ -105,6 +106,9 @@ namespace osu.Game.Scoring.Legacy
|
||||
readCompressedData(compressedScoreInfo, reader =>
|
||||
{
|
||||
LegacyReplaySoloScoreInfo readScore = JsonConvert.DeserializeObject<LegacyReplaySoloScoreInfo>(reader.ReadToEnd());
|
||||
|
||||
Debug.Assert(readScore != null);
|
||||
|
||||
score.ScoreInfo.Statistics = readScore.Statistics;
|
||||
score.ScoreInfo.MaximumStatistics = readScore.MaximumStatistics;
|
||||
score.ScoreInfo.Mods = readScore.Mods.Select(m => m.ToMod(currentRuleset)).ToArray();
|
||||
|
Loading…
Reference in New Issue
Block a user