Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xqrzd committed May 6, 2023
1 parent 714c6b8 commit 0c47fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knet.Kudu.Client/Internal/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static ArrayBufferWriter<T> Clone<T>(this ArrayBufferWriter<T> writer)
/// </summary>
/// <typeparam name="T">The type of element in the list.</typeparam>
/// <param name="source">The enumerable to return as a list.</param>
[return: NotNullIfNotNull("source")]
[return: NotNullIfNotNull(nameof(source))]
public static List<T>? AsList<T>(this IEnumerable<T>? source) =>
source == null || source is List<T> ? (List<T>)source! : source.ToList();

Expand Down

0 comments on commit 0c47fe3

Please sign in to comment.