Remove null checks on CreateInstance() calls

This commit is contained in:
Dean Herbert
2021-11-24 12:22:13 +09:00
parent 8d69ebd7db
commit 0eea026afb
5 changed files with 4 additions and 7 deletions

View File

@ -282,9 +282,6 @@ namespace osu.Game.Stores
{
var rulesetInstance = ((IRulesetInfo)beatmap.Ruleset).CreateInstance();
if (rulesetInstance == null)
return;
decoded.BeatmapInfo.Ruleset = rulesetInstance.RulesetInfo;
// TODO: this should be done in a better place once we actually need to dynamically update it.