refactor(github): don’t try/catch getAllRenovateBranches

This commit is contained in:
Rhys Arkins 2018-07-26 21:13:41 +02:00
parent d336f35ebb
commit ba12183626

View file

@ -404,7 +404,6 @@ async function branchExists(branchName) {
async function getAllRenovateBranches(branchPrefix) {
logger.trace('getAllRenovateBranches');
try {
const allBranches = (await get(
`repos/${config.repository}/git/refs/heads/${branchPrefix}`,
{
@ -429,9 +428,6 @@ async function getAllRenovateBranches(branchPrefix) {
}
return arr;
}, []);
} catch (err) /* istanbul ignore next */ {
return [];
}
}
async function isBranchStale(branchName) {