We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0a1dbc + 3723a16 commit 3b4c70cCopy full SHA for 3b4c70c
src/ZoneTree/Collections/SingleProducerSingleConsumerQueue.cs
@@ -68,10 +68,7 @@ public IReadOnlyList<TQueueItem> ToFirstInFirstArray()
68
69
while (start != end)
70
{
71
- var item = items[start];
72
- if (item == null)
73
- continue;
74
- list.Add(item);
+ list.Add(items[start]);
75
start = (start + 1) % size;
76
}
77
return list;
@@ -87,10 +84,7 @@ public IReadOnlyList<TQueueItem> ToLastInFirstArray()
87
84
88
85
89
86
90
- var item = items[end];
91
92
93
+ list.Add(items[end]);
94
end = (size + end - 1) % size;
95
96
0 commit comments