1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

Remove redundant assertion

It does look pretty dumb to be checking if something is `null` *after
calling an instance method on it*...
This commit is contained in:
Bartłomiej Dach 2024-01-22 22:01:03 +01:00
parent fdd499a485
commit 4d253ebf3c
No known key found for this signature in database

View File

@ -187,8 +187,6 @@ namespace osu.Game.Scoring.Legacy
var rulesetInstance = ruleset.CreateInstance();
var scoreProcessor = rulesetInstance.CreateScoreProcessor();
Debug.Assert(rulesetInstance != null);
// Populate the maximum statistics.
HitResult maxBasicResult = rulesetInstance.GetHitResults()
.Select(h => h.result)