Skip to content

Commit d521402

Browse files
authored
Remove incorrect assert clause (#118828)
1 parent 2dada4c commit d521402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Linq/src/System/Linq/Where.SizeOpt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private sealed partial class SizeOptIListWhereIterator<TSource> : Iterator<TSour
1616

1717
public SizeOptIListWhereIterator(IList<TSource> source, Func<TSource, bool> predicate)
1818
{
19-
Debug.Assert(source is not null && source.Count > 0);
19+
Debug.Assert(source is not null);
2020
Debug.Assert(predicate is not null);
2121
_source = source;
2222
_predicate = predicate;

0 commit comments

Comments
 (0)