Do not repeat "gems" in the badge value
This commit is contained in:
parent
94ab0baf10
commit
507ee33bdd
|
@ -1211,10 +1211,7 @@ cache(function(data, match, sendBadge, request) {
|
|||
} else {
|
||||
badgeData.colorscheme = 'brightgreen';
|
||||
}
|
||||
badgeData.text[1] = count+' gem';
|
||||
if (count > 1) {
|
||||
badgeData.text[1] += 's';
|
||||
}
|
||||
badgeData.text[1] = count;
|
||||
sendBadge(format, badgeData);
|
||||
} catch (e) {
|
||||
badgeData.text[1] = 'invalid';
|
||||
|
|
Loading…
Reference in New Issue
Block a user