From 7d6dd75bdf76b09f23680cea4738a92d2498efe9 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Tue, 13 Oct 2015 13:20:40 +0200 Subject: [PATCH] remove logic again because api takes care of it now --- app/routes/branches.coffee | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/routes/branches.coffee b/app/routes/branches.coffee index c2762643..bfd60170 100644 --- a/app/routes/branches.coffee +++ b/app/routes/branches.coffee @@ -16,16 +16,7 @@ Route = TravisRoute.extend $.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100", options).then (response) -> allTheBranches = response.branches - - defaultBranch = allTheBranches.filter (item, index) -> - item if item.repository.default_branch['@href'] == item['@href'] - allTheBranches - unless defaultBranch.length == 1 - $.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100&offset=1", options).then (response) -> - allTheBranches = allTheBranches.concat(response.branches) - - allTheBranches activate: () -> $('.tab.tabs--main li').removeClass('active')