Skip to content

Commit

Permalink
Minor changes to restart build and rerun flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asmirnov82 committed Aug 30, 2023
1 parent d1e974e commit 99bbe5d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ internal static class PrimitiveColumnContainerHelpers
internal static DataFrameBuffer<T> GetOrCreateMutable<T>(this IList<ReadOnlyDataFrameBuffer<T>> bufferList, int index)
where T : unmanaged
{
ReadOnlyDataFrameBuffer<T> sourceBuffer = bufferList[index];
DataFrameBuffer<T> mutableBuffer = sourceBuffer as DataFrameBuffer<T>;
var sourceBuffer = bufferList[index];

if (mutableBuffer == null)
if (sourceBuffer is not DataFrameBuffer<T> mutableBuffer)
{
mutableBuffer = DataFrameBuffer<T>.GetMutableBuffer(sourceBuffer);
bufferList[index] = mutableBuffer;
Expand Down

0 comments on commit 99bbe5d

Please sign in to comment.