fix: if scm only is false, the file should still be included

Signed-off-by: Anton Ganhammar <ganhammar@gmail.com>
This commit is contained in:
Anton Ganhammar
2023-09-02 08:24:53 +02:00
parent df005d9932
commit 7e9ed3a58e
@@ -75,9 +75,9 @@ export class Lcov implements Converter {
this.logger.debug(`matched ${file} to ${filename}`);
if (filename) {
if (scmFiles.length === 0 || filename) {
return {
filename,
filename: filename || file,
lineHits: {},
branchHits: {},
};