Skip to content

Commit aa5c451

Browse files
committed
fix(coverage): use await for callResults
fixes #7
1 parent d555319 commit aa5c451

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/coverage.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ export default async (options: IOptions) => {
4040
}))
4141
});
4242

43-
const results = await Promise.all(promises);
44-
options.reporter(results, options.schema);
45-
return results;
46-
}).then((callResults) => {
47-
options.reporter(callResults, options.schema);
48-
});
43+
const callResults = await Promise.all(promises);
44+
options.reporter(callResults, options.schema);
4945
}

0 commit comments

Comments
 (0)