mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
remove useless nullcheck
This commit is contained in:
parent
eeecbfcbe0
commit
d6d5bb5ecf
@ -9,7 +9,7 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
{
|
{
|
||||||
public class RulesetBindingsSection : SettingsSection
|
public class RulesetBindingsSection : SettingsSection
|
||||||
{
|
{
|
||||||
public override FontAwesome Icon => (ruleset?.CreateInstance().CreateIcon() as SpriteIcon)?.Icon ?? FontAwesome.fa_osu_hot;
|
public override FontAwesome Icon => (ruleset.CreateInstance().CreateIcon() as SpriteIcon)?.Icon ?? FontAwesome.fa_osu_hot;
|
||||||
public override string Header => ruleset.Name;
|
public override string Header => ruleset.Name;
|
||||||
|
|
||||||
private readonly RulesetInfo ruleset;
|
private readonly RulesetInfo ruleset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user