Remove likely unnecessary score null check

This commit is contained in:
Dean Herbert 2021-08-11 16:59:42 +09:00
parent ee3b373e8a
commit 3f067e3a8d

View File

@ -962,7 +962,7 @@ namespace osu.Game.Screens.Play
screenSuspension?.Expire(); screenSuspension?.Expire();
// if arriving here and the results screen preparation task hasn't run, it's safe to say the user has not completed the beatmap. // if arriving here and the results screen preparation task hasn't run, it's safe to say the user has not completed the beatmap.
if (Score != null && prepareScoreForDisplayTask == null) if (prepareScoreForDisplayTask == null)
{ {
Score.ScoreInfo.Passed = false; Score.ScoreInfo.Passed = false;
// potentially should be ScoreRank.F instead? this is the best alternative for now. // potentially should be ScoreRank.F instead? this is the best alternative for now.