diff options
author | Rhys Arkins <[email protected]> | 2018-10-19 06:57:21 +0200 |
---|---|---|
committer | Rhys Arkins <[email protected]> | 2018-10-19 06:57:21 +0200 |
commit | e9053fbe4a9ba3bcb8719742e967e2ffcf04c0d4 (patch) | |
tree | 35a39f7ec175e20d3531f01d74819835c77214a4 | |
parent | 46dfc5eb1dd0d1ee0ebfe62d89dc664f5e558fab (diff) | |
download | renovate-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.js | 5 |
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 { |