diff --git a/src/util.ts b/src/util.ts index f8039b9fd..692c3748e 100644 --- a/src/util.ts +++ b/src/util.ts @@ -885,7 +885,7 @@ export function getTempFilePath(name: string): string { } export function cleanupTempDir() { - if (!tmpDir) { + if (tmpDir) { rmdirRecursive(tmpDir); } tmpDir = undefined;