From 808b1f87f071a43b97fe557f9353e53592e8a79c Mon Sep 17 00:00:00 2001 From: Nico Lindemann Date: Fri, 21 Nov 2014 22:17:02 +0100 Subject: [PATCH] A bit better, fix #309 --- server.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server.js b/server.js index 918521cf31a96..65b5c637c7c06 100644 --- a/server.js +++ b/server.js @@ -2036,11 +2036,8 @@ cache(function(data, match, sendBadge, request) { var branch = match[2]; var options = { method: 'GET', - uri: 'https://www.codeship.io/projects/' + projectId + '/status' + uri: 'https://www.codeship.io/projects/' + projectId + '/status' + (branch != null ? '?branch=' + branch : '') }; - if (branch != null) { - options.uri += '?branch=' + branch; - } var badgeData = getBadgeData('build', data); request(options, function(err, res) { if (err != null) {