We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14531d3 commit 3466676Copy full SHA for 3466676
src/JsonApiDotNetCore/CollectionExtensions.cs
@@ -82,7 +82,7 @@ public static bool DictionaryEqual<TKey, TValue>(this IReadOnlyDictionary<TKey,
82
83
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T>? source)
84
{
85
- return source ?? Enumerable.Empty<T>();
+ return source ?? [];
86
}
87
88
public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source)
0 commit comments