Skip to content
Snippets Groups Projects
Commit eed98265 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: Revert fix: check currentValue before generating newValue

parent bb64598d
No related branches found
No related tags found
No related merge requests found
...@@ -32,21 +32,19 @@ export function generateUpdate( ...@@ -32,21 +32,19 @@ export function generateUpdate(
} }
} }
const { currentValue } = config; const { currentValue } = config;
if (currentValue) { try {
try { update.newValue = versioning.getNewValue({
update.newValue = versioning.getNewValue({ currentValue,
currentValue, rangeStrategy,
rangeStrategy, currentVersion,
currentVersion, newVersion,
newVersion, });
}); } catch (err) /* istanbul ignore next */ {
} catch (err) /* istanbul ignore next */ { logger.warn(
logger.warn( { err, currentValue, rangeStrategy, currentVersion, newVersion },
{ err, currentValue, rangeStrategy, currentVersion, newVersion }, 'getNewValue error'
'getNewValue error' );
); update.newValue = currentValue;
update.newValue = currentValue;
}
} }
update.newMajor = versioning.getMajor(newVersion); update.newMajor = versioning.getMajor(newVersion);
update.newMinor = versioning.getMinor(newVersion); update.newMinor = versioning.getMinor(newVersion);
......
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