diff --git a/src/manager/AvManager.ts b/src/manager/AvManager.ts index 13b1354..24e1c72 100644 --- a/src/manager/AvManager.ts +++ b/src/manager/AvManager.ts @@ -69,7 +69,6 @@ export class AvManager implements OnInit { } private doScan(resource: string): Promise { - const pArr = this.avEngines.map(engine => engine.scan(resource)); - return Promise.all(pArr); + return Promise.all(this.avEngines.map(engine => engine.scan(resource))); } }