Skip to content

Commit 22117e3

Browse files
Address formatting warnings
1 parent 2e5a737 commit 22117e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/SuperLinq/Collections/UpdatablePriorityQueue.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -655,14 +655,12 @@ public void Clear()
655655
{
656656
#if !NETSTANDARD
657657
if (RuntimeHelpers.IsReferenceOrContainsReferences<(TElement, TPriority)>())
658-
{
659658
#endif
659+
{
660660
// Clear the elements so that the gc can reclaim the references
661661
Array.Clear(_nodes, 0, Count);
662662
_elementIndex.Clear();
663-
#if !NETSTANDARD
664663
}
665-
#endif
666664

667665
Count = 0;
668666
_version++;
@@ -758,7 +756,9 @@ private void RemoveRootNode()
758756
#if !NETSTANDARD
759757
if (RuntimeHelpers.IsReferenceOrContainsReferences<(TElement, TPriority)>())
760758
#endif
759+
{
761760
_nodes[lastNodeIndex] = default;
761+
}
762762
}
763763

764764
/// <summary>

0 commit comments

Comments
 (0)