fix: use concat instead of spread operator

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2024-10-15 14:58:01 +02:00
parent f6b4b8a55b
commit d583c32a21
@@ -352,12 +352,12 @@ export class BitbucketCloudEntityProvider implements EntityProvider {
.listProjectsByWorkspace(workspace)
.iterateResults();
const results: IngestionTarget[] = [];
let results: IngestionTarget[] = [];
for await (const project of projects) {
const projectQuery = `${query} project:${project.key}`;
const result = await this.processQuery(workspace, projectQuery);
results.push(...result);
results = results.concat(result);
}
return results;