From 7a6dbef4f944c71ad16547372a23368d1f16bb90 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Mon, 27 Feb 2023 21:11:07 +0000 Subject: [PATCH] [ci skip] Fix null-check precondition for WhereNot --- X10D/src/Collections/EnumerableExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/X10D/src/Collections/EnumerableExtensions.cs b/X10D/src/Collections/EnumerableExtensions.cs index ddba90e..93e1b67 100644 --- a/X10D/src/Collections/EnumerableExtensions.cs +++ b/X10D/src/Collections/EnumerableExtensions.cs @@ -1,4 +1,4 @@ -using System.Diagnostics.Contracts; +using System.Diagnostics.Contracts; namespace X10D.Collections; @@ -335,7 +335,7 @@ public static class EnumerableExtensions [Pure] public static IEnumerable WhereNot(this IEnumerable source, Func predicate) { -#if NET6_0 +#if NET6_0_OR_GREATER ArgumentNullException.ThrowIfNull(source); ArgumentNullException.ThrowIfNull(predicate); #else