1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 04:22:55 +08:00

fix code quality

This commit is contained in:
Caiyi Shyu 2024-07-27 16:24:20 +08:00
parent b97d96fcb0
commit fc842868a9

View File

@ -236,7 +236,8 @@ namespace osu.Game.Overlays.Mods
protected override void LoadComplete()
{
inputManager = GetContainingInputManager();
base.LoadComplete();
inputManager = GetContainingInputManager()!;
}
protected override void OnHoverLost(HoverLostEvent e)
@ -251,7 +252,7 @@ namespace osu.Game.Overlays.Mods
{
return inputManager.HoveredDrawables.Any(parentIsThis);
bool parentIsThis(Drawable d)
bool parentIsThis(Drawable? d)
=> d is not null && (d == this || parentIsThis(d.Parent));
}
}