Skip to content

Commit 3504075

Browse files
Update src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs
Added discard as per PR feedback Co-authored-by: Paul Irwin <paulirwin@gmail.com>
1 parent 95df1a2 commit 3504075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public virtual void AddFacetCount(BytesRef facetValue, int count)
192192
{
193193
// LUCENENET: We can safely ignore the return value of TryGetLast() here, because we
194194
// know that the collection is not empty (we just added an entry to it).
195-
facetEntries.TryGetLast(out FacetEntry last);
195+
_ = facetEntries.TryGetLast(out FacetEntry last);
196196
currentMin = last.Count;
197197
}
198198
}

0 commit comments

Comments
 (0)