mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
fix: check currentValue before generating newValue
This commit is contained in:
parent
f6454ba1a7
commit
bb64598d6a
1 changed files with 15 additions and 13 deletions
|
@ -32,6 +32,7 @@ export function generateUpdate(
|
|||
}
|
||||
}
|
||||
const { currentValue } = config;
|
||||
if (currentValue) {
|
||||
try {
|
||||
update.newValue = versioning.getNewValue({
|
||||
currentValue,
|
||||
|
@ -46,6 +47,7 @@ export function generateUpdate(
|
|||
);
|
||||
update.newValue = currentValue;
|
||||
}
|
||||
}
|
||||
update.newMajor = versioning.getMajor(newVersion);
|
||||
update.newMinor = versioning.getMinor(newVersion);
|
||||
// istanbul ignore if
|
||||
|
|
Loading…
Reference in a new issue