diff --git a/src/ntcore/NetworkTable.cs b/src/ntcore/NetworkTable.cs index 6d6d5067..d1d1da02 100644 --- a/src/ntcore/NetworkTable.cs +++ b/src/ntcore/NetworkTable.cs @@ -211,7 +211,7 @@ public NtListener AddListener(EventFlags eventKinds, Action callba ForeachComponents.AddRange(components.Select(x => x.Value)); foreach (var comp in ForeachComponents) { - if (comp.m_builder == null || comp.m_sendable == null) + if (comp.m_builder is null || comp.m_sendable is null) { continue; } @@ -468,7 +468,7 @@ public static void ForeachLiveWindow(int dataHandle, Action callba } if (cbdata.Data is not null) { - if (comp.m_data == null) + if (comp.m_data is null) { comp.m_data = new IDisposable[dataHandle + 1]; }