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

@ -33,7 +33,7 @@ namespace osu.Game.Screens.Edit.Setup
new DesignSection(),
};
var rulesetSpecificSection = beatmap.BeatmapInfo.Ruleset?.CreateInstance()?.CreateEditorSetupSection();
var rulesetSpecificSection = beatmap.BeatmapInfo.Ruleset?.CreateInstance().CreateEditorSetupSection();
if (rulesetSpecificSection != null)
sectionsEnumerable.Add(rulesetSpecificSection);