Revert #288 change

This commit is contained in:
Thaddee Tyl 2014-10-26 22:11:30 +01:00
parent 0f0bb771bf
commit c6719399ae

View File

@ -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;
}