From f7d0aebc2ae7b4b332ee619332e815291273d834 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Thu, 25 Nov 2021 15:40:40 +0000 Subject: [PATCH] more cleanup --- QSB/Utility/DebugGUI.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QSB/Utility/DebugGUI.cs b/QSB/Utility/DebugGUI.cs index 424b1561..488533fe 100644 --- a/QSB/Utility/DebugGUI.cs +++ b/QSB/Utility/DebugGUI.cs @@ -209,8 +209,7 @@ namespace QSB.Utility foreach (var quantumObject in ownedQuantumObjects) { - var qsbObj = quantumObject as IWorldObject; - if (qsbObj == null) + if (quantumObject is not IWorldObject qsbObj) { WriteLine(4, $"NULL QSBOBJ", Color.red); }