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

refactor: remove unused branchList in updateRepo

parent 1627db8c
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ export async function renovateRepository( ...@@ -39,7 +39,7 @@ export async function renovateRepository(
config config
); );
await ensureOnboardingPr(config, packageFiles, branches); await ensureOnboardingPr(config, packageFiles, branches);
const res = await updateRepo(config, branches, branchList); const res = await updateRepo(config, branches);
addSplit('update'); addSplit('update');
if (res !== 'automerged') { if (res !== 'automerged') {
await ensureMasterIssue(config, branches); await ensureMasterIssue(config, branches);
......
...@@ -27,7 +27,7 @@ describe('workers/repository/process/index', () => { ...@@ -27,7 +27,7 @@ describe('workers/repository/process/index', () => {
git.branchExists.mockReturnValueOnce(false); git.branchExists.mockReturnValueOnce(false);
git.branchExists.mockReturnValueOnce(true); git.branchExists.mockReturnValueOnce(true);
const res = await extractDependencies(config); const res = await extractDependencies(config);
await updateRepo(config, res.branches, res.branchList); await updateRepo(config, res.branches);
expect(res).toMatchSnapshot(); expect(res).toMatchSnapshot();
}); });
}); });
......
...@@ -95,8 +95,7 @@ export async function extractDependencies( ...@@ -95,8 +95,7 @@ export async function extractDependencies(
export function updateRepo( export function updateRepo(
config: RenovateConfig, config: RenovateConfig,
branches: BranchConfig[], branches: BranchConfig[]
branchList: string[]
): Promise<WriteUpdateResult | undefined> { ): Promise<WriteUpdateResult | undefined> {
logger.debug('processRepo()'); logger.debug('processRepo()');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment