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:
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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user