mirror of
https://github.com/actions/checkout.git
synced 2026-03-15 18:53:29 +08:00
Fix indentation
This commit is contained in:
parent
043bdbc4cc
commit
4bd535976f
@ -68,8 +68,8 @@ export class GitCacheHelper {
|
|||||||
await git.execGit(args)
|
await git.execGit(args)
|
||||||
|
|
||||||
if (fs.existsSync(cachePath)) {
|
if (fs.existsSync(cachePath)) {
|
||||||
// In rare cases where it somehow exists but objects/ didn't, clean it up
|
// 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.rm(cachePath, { recursive: true, force: true })
|
||||||
}
|
}
|
||||||
await fs.promises.rename(tmpPath, cachePath)
|
await fs.promises.rename(tmpPath, cachePath)
|
||||||
} catch (cloneErr) {
|
} catch (cloneErr) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user