Skip to content
Snippets Groups Projects
Commit 5b3a17e2 authored by Michael Kriese's avatar Michael Kriese Committed by Rhys Arkins
Browse files

fix(versioning): fix wrong this context (#4352)

parent 25df1d09
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ function getRollbackUpdate(config, versions) { ...@@ -35,7 +35,7 @@ function getRollbackUpdate(config, versions) {
{ dependency: depName, versions }, { dependency: depName, versions },
'Versions found before rolling back' 'Versions found before rolling back'
); );
lessThanVersions.sort(version.sortVersions); lessThanVersions.sort((a, b) => version.sortVersions(a, b));
const toVersion = lessThanVersions.pop(); const toVersion = lessThanVersions.pop();
// istanbul ignore if // istanbul ignore if
if (!toVersion) { if (!toVersion) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment