Commit d8c2073c authored by aniket-engg's avatar aniket-engg

suggested change done

parent e5dd64c3
......@@ -18,8 +18,9 @@ export default class staticAnalysisRunner {
*/
run (compilationResult: CompilationResult, toRun: number[], callback: ((reports: AnalysisReport[]) => void)): void {
const modules: ModuleObj[] = toRun.map((i) => {
const m = this.modules()[i]
return { 'name': new m().name, 'mod': new m() }
const module = this.modules()[i]
const m = new module()
return { 'name': m.name, 'mod': m }
})
this.runWithModuleList(compilationResult, modules, callback)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment