From 7af01c5ee2ffa16077b6d3736fbbde3e3b09712c Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Wed, 1 Jul 2020 08:12:36 +0200 Subject: [PATCH] fix: set empty cache if not found --- lib/util/cache/repository/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/cache/repository/index.ts b/lib/util/cache/repository/index.ts index 395316808c4594..4ca55197b73d35 100644 --- a/lib/util/cache/repository/index.ts +++ b/lib/util/cache/repository/index.ts @@ -44,6 +44,7 @@ export async function initialize(config: RenovateConfig): Promise { logger.debug({ cacheFileName }, 'Read repository cache'); } catch (err) { logger.debug({ cacheFileName }, 'No repository cache found'); + cache = {}; } }