Skip to content

Commit 73e86bf

Browse files
hazzikmaca88
authored andcommitted
Use ToArray extension instead of Select(o=>..).ToArray()
1 parent 108e07b commit 73e86bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Util/JoinedAsyncEnumerable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public JoinedAsyncEnumerable(IAsyncEnumerable<T>[] asyncEnumerables)
1717
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default)
1818
{
1919
return new JoinedAsyncEnumerator(
20-
_asyncEnumerables.Select(o => o.GetAsyncEnumerator()).ToArray(),
20+
_asyncEnumerables.ToArray(o => o.GetAsyncEnumerator()),
2121
cancellationToken);
2222
}
2323

0 commit comments

Comments
 (0)