From 03eff9693cd313e3b22c3064c72a0ca4e610a8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Sun, 21 Jul 2024 16:38:03 +0300 Subject: [PATCH] chore: remove unused var --- packages/vitest/src/utils/coverage.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/vitest/src/utils/coverage.ts b/packages/vitest/src/utils/coverage.ts index 627a7507b4a7..bdc729bf5985 100644 --- a/packages/vitest/src/utils/coverage.ts +++ b/packages/vitest/src/utils/coverage.ts @@ -182,7 +182,6 @@ export class BaseCoverageProvider { }): ResolvedThreshold[] { const resolvedThresholds: ResolvedThreshold[] = [] const files = coverageMap.files() - const filesMatchedByGlobs: string[] = [] const globalCoverageMap = createCoverageMap() for (const key of Object.keys( @@ -204,7 +203,6 @@ export class BaseCoverageProvider { const matchingFiles = files.filter(file => mm.isMatch(relative(root, file), glob), ) - filesMatchedByGlobs.push(...matchingFiles) for (const file of matchingFiles) { const fileCoverage = coverageMap.fileCoverageFor(file)