Skip to content

Commit

Permalink
fix(cache): don't warn for missing cacheData (#28441)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Apr 16, 2024
1 parent 1eddab7 commit 41e6be8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/util/cache/repository/impl/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ export abstract class RepoCacheBase implements RepoCache {
}

async save(): Promise<void> {
cleanupHttpCache(this.data);

if (this.data) {
cleanupHttpCache(this.data);
}
const jsonStr = safeStringify(this.data);
const hashedJsonStr = hash(jsonStr);
if (hashedJsonStr === this.oldHash) {
Expand Down

0 comments on commit 41e6be8

Please sign in to comment.