From c0c935963ee4ea0fb34bf010e5f29a44c5f48c21 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 7 May 2018 07:55:49 +0200 Subject: [PATCH] refactor: remove null onboarding case --- lib/workers/repository/onboarding/pr/index.js | 3 --- test/workers/repository/onboarding/pr/index.spec.js | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lib/workers/repository/onboarding/pr/index.js b/lib/workers/repository/onboarding/pr/index.js index 73fc0110e1..5012b9f527 100644 --- a/lib/workers/repository/onboarding/pr/index.js +++ b/lib/workers/repository/onboarding/pr/index.js @@ -5,9 +5,6 @@ const { getPrList } = require('./pr-list'); async function ensureOnboardingPr(config, branches) { logger.debug('ensureOnboardingPr()'); - if (config.repoIsOnboarded) { - return null; - } logger.trace({ config }); const onboardingBranch = `renovate/configure`; const onboardingPrTitle = 'Configure Renovate'; diff --git a/test/workers/repository/onboarding/pr/index.spec.js b/test/workers/repository/onboarding/pr/index.spec.js index 0645f1bd5a..5230911877 100644 --- a/test/workers/repository/onboarding/pr/index.spec.js +++ b/test/workers/repository/onboarding/pr/index.spec.js @@ -19,10 +19,6 @@ describe('workers/repository/onboarding/pr', () => { platform.createPr.mockReturnValue({}); }); let createPrBody; - it('returns if onboarded', async () => { - config.repoIsOnboarded = true; - expect(await ensureOnboardingPr(config, [])).toBe(null); - }); it('creates PR', async () => { await ensureOnboardingPr(config, []); expect(platform.createPr.mock.calls).toHaveLength(1); -- GitLab