Skip to content

Commit

Permalink
Revert #288 change
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine committed Oct 26, 2014
1 parent 0f0bb77 commit c671939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ cache(function(data, match, sendBadge, request) {
// Find the latest push on this branch.
var build = null;
for (var i = 0; i < json.length; i++) {
if (json[i].state === 'finished' &&
(json[i].event_type === 'push' || json[i].event_type === 'pull_request')
&& json[i].branch === branch) {
if ((json[i].state === 'finished')
&& (json[i].event_type === 'push')
&& (json[i].branch === branch)) {
build = json[i];
break;
}
Expand Down

0 comments on commit c671939

Please sign in to comment.