mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix(datasource/maven): Fix head request caching (#14521)
This commit is contained in:
parent
92d1aa53bd
commit
f337d50af6
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue