Skip to content

Commit 3466676

Browse files
committed
Fix new Resharper warning
1 parent 14531d3 commit 3466676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/CollectionExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static bool DictionaryEqual<TKey, TValue>(this IReadOnlyDictionary<TKey,
8282

8383
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T>? source)
8484
{
85-
return source ?? Enumerable.Empty<T>();
85+
return source ?? [];
8686
}
8787

8888
public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source)

0 commit comments

Comments
 (0)