Skip to content

Commit

Permalink
Merge remote-tracking branch 'alanshaw/david-nsp'
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine committed Oct 11, 2014
2 parents 110a407 + 3052fbd commit 7212d71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,10 @@ cache(function(data, match, sendBadge, request) {
try {
var data = JSON.parse(buffer);
var status = data.status;
if (status === 'notsouptodate') {
if (status === 'insecure') {
badgeData.colorscheme = 'red';
status = 'insecure';
} else if (status === 'notsouptodate') {
badgeData.colorscheme = 'yellow';
status = 'up-to-date';
} else if (status === 'outofdate') {
Expand Down

0 comments on commit 7212d71

Please sign in to comment.