1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 16:52:19 +08:00

Use null propagation

This commit is contained in:
EVAST9919
2017-11-07 03:26:47 +03:00
Unverified
parent 1063e18566
commit 60e6177b7f
+2 -4
View File
@@ -119,15 +119,13 @@ namespace osu.Game.Overlays.Profile
protected override bool OnHover(InputState state)
{
if (graph != null)
graph.ShowBall(ToLocalSpace(state.Mouse.NativeState.Position).X);
graph?.ShowBall(ToLocalSpace(state.Mouse.NativeState.Position).X);
return base.OnHover(state);
}
protected override bool OnMouseMove(InputState state)
{
if (graph != null)
graph.MoveBall(ToLocalSpace(state.Mouse.NativeState.Position).X);
graph?.MoveBall(ToLocalSpace(state.Mouse.NativeState.Position).X);
return base.OnMouseMove(state);
}