Skip to content

Commit

Permalink
[ci skip] Fix null-check precondition for WhereNot<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Feb 27, 2023
1 parent 3ef6cf2 commit 7a6dbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions X10D/src/Collections/EnumerableExtensions.cs
@@ -1,4 +1,4 @@
using System.Diagnostics.Contracts;
using System.Diagnostics.Contracts;

namespace X10D.Collections;

Expand Down Expand Up @@ -335,7 +335,7 @@ public static IReadOnlyCollection<T> Shuffled<T>(this IEnumerable<T> source, Ran
[Pure]
public static IEnumerable<TSource> WhereNot<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
{
#if NET6_0
#if NET6_0_OR_GREATER
ArgumentNullException.ThrowIfNull(source);
ArgumentNullException.ThrowIfNull(predicate);
#else
Expand Down

0 comments on commit 7a6dbef

Please sign in to comment.