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

@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
{
public class RulesetBindingsSection : SettingsSection
{
public override Drawable CreateIcon() => ruleset?.CreateInstance()?.CreateIcon() ?? new SpriteIcon
public override Drawable CreateIcon() => ruleset?.CreateInstance().CreateIcon() ?? new SpriteIcon
{
Icon = OsuIcon.Hot
};