1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 02:49:54 +08:00

fix code quality

This commit is contained in:
Caiyi Shyu
2024-07-27 16:24:20 +08:00
Unverified
parent b97d96fcb0
commit fc842868a9
@@ -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));
}
}