1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Use IsNotNull() helper

This commit is contained in:
Dan Balasescu 2022-06-03 19:50:21 +09:00
parent 6f1437e73d
commit 5245995689

View File

@ -9,6 +9,7 @@ using System.Diagnostics;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Graphics;
using osu.Framework.Timing;
using osu.Game.Rulesets;
@ -165,8 +166,7 @@ namespace osu.Game.Online.Spectator
{
base.Dispose(isDisposing);
// ReSharper disable once ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract
if (spectatorClient != null)
if (spectatorClient.IsNotNull())
spectatorClient.OnNewFrames -= onNewFrames;
}