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