Skip to content

Commit 51f7b00

Browse files
fix: remove unnecessary null-conditional operators in OnlineStatusNotifier.Dispose (InspectCode warning)
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/78598192-f2c2-49e8-9b77-ba2c9587efa7 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent b977884 commit 51f7b00

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

osu.Game/Online/OnlineStatusNotifier.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ protected override void Dispose(bool isDisposing)
161161
{
162162
base.Dispose(isDisposing);
163163

164-
apiState?.UnbindAll();
165-
multiplayerState?.UnbindAll();
166-
spectatorState?.UnbindAll();
164+
apiState.UnbindAll();
165+
multiplayerState.UnbindAll();
166+
spectatorState.UnbindAll();
167167

168168
if (notificationsClient.IsNotNull())
169169
notificationsClient.MessageReceived -= notifyAboutForcedDisconnection;

0 commit comments

Comments
 (0)