Skip to content

Commit

Permalink
Missed a few saves
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Feb 21, 2024
1 parent d906370 commit 2d3e4e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ntcore/NetworkTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public NtListener AddListener(EventFlags eventKinds, Action<NetworkTable, string
// Don't fully construct the lazy object
topicName = ntEvent.ValueData.Value.GetTopicName();
}
if (topicName == null)
if (topicName is null)
{
return;
}
Expand Down Expand Up @@ -240,7 +240,7 @@ private class SubTableListenerHolder(int prefixLen, NetworkTable parent, Action<

public void OnEvent(NetworkTableEvent ntEvent)
{
if (ntEvent.TopicInfo == null)
if (ntEvent.TopicInfo is null)
{
return;
}
Expand Down
6 changes: 3 additions & 3 deletions src/wpiutil/Sendable/SendableRegistery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static int GetDataHandle()
}

IDisposable? rv = null;
if (comp.m_data == null)
if (comp.m_data is null)
{
comp.m_data = new IDisposable?[handle + 1];
}
Expand Down Expand Up @@ -437,7 +437,7 @@ public static void ForeachLiveWindow(int dataHandle, Action<CallbackData> 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;
}
Expand Down Expand Up @@ -468,7 +468,7 @@ public static void ForeachLiveWindow(int dataHandle, Action<CallbackData> 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];
}
Expand Down

0 comments on commit 2d3e4e6

Please sign in to comment.