mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-19 09:35:36 -05:00
Address CA1829 (Avoiding Count LINQ method calls when equivalent + more efficient properties exist) (#1961)
* Address CA1829 (Avoid Count LINQ Method Calls) * Remove other change * CA1829 removal * CA1829 (remove whitespace)
This commit is contained in:
@@ -54,7 +54,7 @@ namespace Microsoft.SqlTools.ResourceProvider.Core
|
||||
|
||||
ServiceResponse<TResult>[] resultList = new ServiceResponse<TResult>[inputList.Count];
|
||||
CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
|
||||
var tasks = Enumerable.Range(0, inputList.Count())
|
||||
var tasks = Enumerable.Range(0, inputList.Count)
|
||||
.Select(async i =>
|
||||
{
|
||||
ServiceResponse<TResult> result = await GetResult(config, inputList[i], lookupKey, cancellationToken,
|
||||
|
||||
Reference in New Issue
Block a user