From e2f067fabacce6ad76869b7917336b775c2b0895 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 5 Mar 2018 13:53:37 +0100
Subject: [PATCH] Revert "fix: skip pruning for multiple baseBranches"

This reverts commit 81c722473f56caf83275e20194c2e30d7d69d88c.
---
 lib/workers/repository/cleanup.js | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/workers/repository/cleanup.js b/lib/workers/repository/cleanup.js
index fef678eda5..58ee07637a 100644
--- a/lib/workers/repository/cleanup.js
+++ b/lib/workers/repository/cleanup.js
@@ -41,11 +41,6 @@ async function pruneStaleBranches(config) {
     logger.debug('No branches to clean up');
     return;
   }
-  // istanbul ignore if
-  if (config.baseBranches && config.baseBranches.length) {
-    logger.info('Skipping cleanup for multiple baseBranches');
-    return;
-  }
   for (const branchName of remainingBranches) {
     logger.info({ branch: branchName }, `Deleting orphan branch`);
     const pr = await platform.findPr(branchName, null, 'open');
-- 
GitLab