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:
parent
6f1437e73d
commit
5245995689
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user