diff --git a/src/libraries/System.Linq/src/System/Linq/Where.SizeOpt.cs b/src/libraries/System.Linq/src/System/Linq/Where.SizeOpt.cs index 8e49701a11efcb..ebb94853261d81 100644 --- a/src/libraries/System.Linq/src/System/Linq/Where.SizeOpt.cs +++ b/src/libraries/System.Linq/src/System/Linq/Where.SizeOpt.cs @@ -16,7 +16,7 @@ private sealed partial class SizeOptIListWhereIterator : Iterator source, Func predicate) { - Debug.Assert(source is not null && source.Count > 0); + Debug.Assert(source is not null); Debug.Assert(predicate is not null); _source = source; _predicate = predicate;