From 2c9b1de0b857a0fae558f417ad132c29bc5d1806 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Tue, 1 Sep 2020 18:33:45 +0200
Subject: [PATCH] refactor: remove unused branchList in updateRepo

---
 lib/workers/repository/index.ts              | 2 +-
 lib/workers/repository/process/index.spec.ts | 2 +-
 lib/workers/repository/process/index.ts      | 3 +--
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/workers/repository/index.ts b/lib/workers/repository/index.ts
index 9a327d2fb9..07c297529a 100644
--- a/lib/workers/repository/index.ts
+++ b/lib/workers/repository/index.ts
@@ -39,7 +39,7 @@ export async function renovateRepository(
       config
     );
     await ensureOnboardingPr(config, packageFiles, branches);
-    const res = await updateRepo(config, branches, branchList);
+    const res = await updateRepo(config, branches);
     addSplit('update');
     if (res !== 'automerged') {
       await ensureMasterIssue(config, branches);
diff --git a/lib/workers/repository/process/index.spec.ts b/lib/workers/repository/process/index.spec.ts
index bad4c22815..f7e7525109 100644
--- a/lib/workers/repository/process/index.spec.ts
+++ b/lib/workers/repository/process/index.spec.ts
@@ -27,7 +27,7 @@ describe('workers/repository/process/index', () => {
       git.branchExists.mockReturnValueOnce(false);
       git.branchExists.mockReturnValueOnce(true);
       const res = await extractDependencies(config);
-      await updateRepo(config, res.branches, res.branchList);
+      await updateRepo(config, res.branches);
       expect(res).toMatchSnapshot();
     });
   });
diff --git a/lib/workers/repository/process/index.ts b/lib/workers/repository/process/index.ts
index feb8671e4a..0696fbfd65 100644
--- a/lib/workers/repository/process/index.ts
+++ b/lib/workers/repository/process/index.ts
@@ -95,8 +95,7 @@ export async function extractDependencies(
 
 export function updateRepo(
   config: RenovateConfig,
-  branches: BranchConfig[],
-  branchList: string[]
+  branches: BranchConfig[]
 ): Promise<WriteUpdateResult | undefined> {
   logger.debug('processRepo()');
 
-- 
GitLab