diff --git a/src/git-cache-helper.ts b/src/git-cache-helper.ts index 9162e42..969b689 100644 --- a/src/git-cache-helper.ts +++ b/src/git-cache-helper.ts @@ -68,8 +68,8 @@ export class GitCacheHelper { await git.execGit(args) if (fs.existsSync(cachePath)) { - // In rare cases where it somehow exists but objects/ didn't, clean it up - await fs.promises.rm(cachePath, { recursive: true, force: true }) + // In rare cases where it somehow exists but objects/ didn't, clean it up + await fs.promises.rm(cachePath, { recursive: true, force: true }) } await fs.promises.rename(tmpPath, cachePath) } catch (cloneErr) {