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);
|
||||
const toVersion = lessThanVersions.pop();
|
||||
// istanbul ignore if
|
||||
if (!toVersion) {
|
||||
logger.info('No toVersion to roll back to');
|
||||
return null;
|
||||
}
|
||||
let fromVersion;
|
||||
const newValue = getNewValue(currentValue, 'replace', fromVersion, toVersion);
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue