diff --git a/lib/workers/repository/updates/branchify.ts b/lib/workers/repository/updates/branchify.ts index 686fdde0fc7d3136e05f06a968ac49f09baed45f..fa0e0e15c864fe1f916911aef1956677668e7b07 100644 --- a/lib/workers/repository/updates/branchify.ts +++ b/lib/workers/repository/updates/branchify.ts @@ -130,20 +130,18 @@ export async function branchifyUpgrades( } = upgrade; const upgradeKey = `${packageFile}:${depName}:${currentValue}`; const previousNewValue = seenUpdates[upgradeKey]; - if (previousNewValue) { - if (previousNewValue !== newValue) { - logger.info( - { - manager, - packageFile, - depName, - currentValue, - previousNewValue, - thisNewValue: newValue, - }, - 'Ignoring upgrade collision' - ); - } + if (previousNewValue && previousNewValue !== newValue) { + logger.info( + { + manager, + packageFile, + depName, + currentValue, + previousNewValue, + thisNewValue: newValue, + }, + 'Ignoring upgrade collision' + ); return false; } seenUpdates[upgradeKey] = newValue;