Skip to content

Commit 5b55e46

Browse files
committed
Using new collection syntax
1 parent 4e79a50 commit 5b55e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Tests.Rqlite.Client/Helpers.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static Func<HttpRequestMessage, Task<Result<List<QueryResponseResult<T>>>
3939
}
4040

4141
public static Result<List<QueryResponseResult<T>>> GetQueryResponseResult<T>(T[] value) =>
42-
new List<QueryResponseResult<T>> { new() { Rows = value.ToList() } };
42+
new List<QueryResponseResult<T>> { new() { Rows = [.. value] } };
4343

4444
#endregion
4545

0 commit comments

Comments
 (0)