From 88c8ad05c0ab11d5cb659ff982e4a04d875c30e4 Mon Sep 17 00:00:00 2001 From: Eugene Zolenko Date: Thu, 20 Apr 2017 13:37:09 -0600 Subject: [PATCH] - removing dead code --- src/rollingcache.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)