Skip to content

Commit

Permalink
fix(datasource/maven): Fix head request caching (#14521)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Mar 9, 2022
1 parent 92d1aa5 commit f337d50
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/modules/datasource/maven/index.ts
Expand Up @@ -289,9 +289,8 @@ export class MavenDatasource extends Datasource {
release.releaseTimestamp = res.toISOString();
}

if (res !== 'not-found' && res !== 'error') {
newReleaseMap[version] = release;
}
newReleaseMap[version] =
res !== 'not-found' && res !== 'error' ? release : null;
}
);

Expand All @@ -302,7 +301,7 @@ export class MavenDatasource extends Datasource {
}

for (const version of Object.keys(releaseMap)) {
releaseMap[version] ||= newReleaseMap[version] ?? null;
releaseMap[version] = newReleaseMap[version] ?? null;
}

return releaseMap;
Expand Down

0 comments on commit f337d50

Please sign in to comment.