From 41e6be8b94d90392e16db4aa83b81a60b50cea20 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Tue, 16 Apr 2024 13:37:09 +0200 Subject: [PATCH] fix(cache): don't warn for missing cacheData (#28441) --- lib/util/cache/repository/impl/base.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/util/cache/repository/impl/base.ts b/lib/util/cache/repository/impl/base.ts index 2fbb6ef8964a7f..4f3383e137ac7b 100644 --- a/lib/util/cache/repository/impl/base.ts +++ b/lib/util/cache/repository/impl/base.ts @@ -71,8 +71,9 @@ export abstract class RepoCacheBase implements RepoCache { } async save(): Promise { - cleanupHttpCache(this.data); - + if (this.data) { + cleanupHttpCache(this.data); + } const jsonStr = safeStringify(this.data); const hashedJsonStr = hash(jsonStr); if (hashedJsonStr === this.oldHash) {