Skip to content

Commit

Permalink
A bit better, fix #309
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Lindemann committed Nov 21, 2014
1 parent 1096a8f commit 808b1f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 808b1f8

Please sign in to comment.