diff --git a/src/rollingcache.ts b/src/rollingcache.ts index 69f569b..f49d886 100644 --- a/src/rollingcache.ts +++ b/src/rollingcache.ts @@ -77,10 +77,7 @@ export class RollingCache implements ICache if (data === undefined) return; - if (this.rolled) - fs.writeJsonSync(`${this.oldCacheRoot}/${name}`, data); - else - fs.writeJsonSync(`${this.newCacheRoot}/${name}`, data); + fs.writeJsonSync(`${this.newCacheRoot}/${name}`, data); } public touch(name: string)