mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Fix code quality
This commit is contained in:
parent
35eddf35c5
commit
49154c0e23
@ -170,7 +170,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
BeatmapInfo = beatmap.Beatmaps.First(),
|
||||
Ruleset = ruleset ?? new OsuRuleset().RulesetInfo,
|
||||
User = new GuestUser(),
|
||||
}).Value;
|
||||
})!.Value;
|
||||
});
|
||||
|
||||
AddAssert($"import {i} succeeded", () => imported != null);
|
||||
|
@ -104,7 +104,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Files = { new RealmNamedFileUsage(new RealmFile { Hash = $"{i}" }, string.Empty) }
|
||||
};
|
||||
|
||||
importedScores.Add(scoreManager.Import(score).Value);
|
||||
importedScores.Add(scoreManager.Import(score)!.Value);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -1200,6 +1200,7 @@ namespace osu.Game.Screens.Play
|
||||
var importableScore = score.ScoreInfo.DeepClone();
|
||||
|
||||
var imported = scoreManager.Import(importableScore, replayReader);
|
||||
Debug.Assert(imported != null);
|
||||
|
||||
imported.PerformRead(s =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user