aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRhys Arkins <[email protected]>2018-10-19 06:57:21 +0200
committerRhys Arkins <[email protected]>2018-10-19 06:57:21 +0200
commite9053fbe4a9ba3bcb8719742e967e2ffcf04c0d4 (patch)
tree35a39f7ec175e20d3531f01d74819835c77214a4
parent46dfc5eb1dd0d1ee0ebfe62d89dc664f5e558fab (diff)
downloadrenovate-13.107.1.tar.gz
renovate-13.107.1.zip
fix: abort rollback if null toVersion13.107.1
-rw-r--r--lib/workers/repository/process/lookup/rollback.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/workers/repository/process/lookup/rollback.js b/lib/workers/repository/process/lookup/rollback.js
index fb87cea4391..713b245399d 100644
--- a/lib/workers/repository/process/lookup/rollback.js
+++ b/lib/workers/repository/process/lookup/rollback.js
@@ -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 {