From f61c416f8a0d5dff170b078caa5fda1012534999 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 23 Apr 2020 17:11:10 +0200
Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20deduplicate=20updates=20?=
 =?UTF-8?q?if=20same=20current=20and=20newvalue?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/workers/repository/updates/branchify.ts | 26 ++++++++++-----------
 1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/lib/workers/repository/updates/branchify.ts b/lib/workers/repository/updates/branchify.ts
index 686fdde0fc..fa0e0e15c8 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;
-- 
GitLab