mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Better loop condition
This commit is contained in:
parent
2304053ee9
commit
3638b3cf88
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ function searchBatch(absolutePaths: string[], contentPattern: RegExp, fileEncodi
|
|||
};
|
||||
|
||||
let batchPromises: TPromise<void>[] = [];
|
||||
for (let i = 0; i < SearchWorker.CONCURRENT_SEARCH_PATHS && i < absolutePaths.length; i++) {
|
||||
for (let i = 0; i < SearchWorker.CONCURRENT_SEARCH_PATHS && absolutePaths.length; i++) {
|
||||
batchPromises.push(startSearchInFile(absolutePaths.shift()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue