mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix: abort rollback if null toVersion
This commit is contained in:
parent
46dfc5eb1d
commit
e9053fbe4a
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ function getRollbackUpdate(config, versions) {
|
||||||
);
|
);
|
||||||
lessThanVersions.sort(sortVersions);
|
lessThanVersions.sort(sortVersions);
|
||||||
const toVersion = lessThanVersions.pop();
|
const toVersion = lessThanVersions.pop();
|
||||||
|
// istanbul ignore if
|
||||||
|
if (!toVersion) {
|
||||||
|
logger.info('No toVersion to roll back to');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
let fromVersion;
|
let fromVersion;
|
||||||
const newValue = getNewValue(currentValue, 'replace', fromVersion, toVersion);
|
const newValue = getNewValue(currentValue, 'replace', fromVersion, toVersion);
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue