1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 12:42:54 +08:00

Fix code quality

This commit is contained in:
Joseph Madamba 2024-04-22 11:23:38 -07:00
parent 35eddf35c5
commit 49154c0e23
3 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,7 @@ namespace osu.Game.Tests.Visual.Navigation
BeatmapInfo = beatmap.Beatmaps.First(), BeatmapInfo = beatmap.Beatmaps.First(),
Ruleset = ruleset ?? new OsuRuleset().RulesetInfo, Ruleset = ruleset ?? new OsuRuleset().RulesetInfo,
User = new GuestUser(), User = new GuestUser(),
}).Value; })!.Value;
}); });
AddAssert($"import {i} succeeded", () => imported != null); AddAssert($"import {i} succeeded", () => imported != null);

View File

@ -104,7 +104,7 @@ namespace osu.Game.Tests.Visual.UserInterface
Files = { new RealmNamedFileUsage(new RealmFile { Hash = $"{i}" }, string.Empty) } Files = { new RealmNamedFileUsage(new RealmFile { Hash = $"{i}" }, string.Empty) }
}; };
importedScores.Add(scoreManager.Import(score).Value); importedScores.Add(scoreManager.Import(score)!.Value);
} }
}); });
}); });

View File

@ -1200,6 +1200,7 @@ namespace osu.Game.Screens.Play
var importableScore = score.ScoreInfo.DeepClone(); var importableScore = score.ScoreInfo.DeepClone();
var imported = scoreManager.Import(importableScore, replayReader); var imported = scoreManager.Import(importableScore, replayReader);
Debug.Assert(imported != null);
imported.PerformRead(s => imported.PerformRead(s =>
{ {