Skip to content

Commit

Permalink
Add early return on error
Browse files Browse the repository at this point in the history
  • Loading branch information
erichoracek committed May 11, 2015
1 parent dffbc3a commit a996e9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,7 @@ cache(function(data, match, sendBadge, request) {
if (err != null) {
badgeData.text[1] = 'inaccessible';
sendBadge(format, badgeData);
return;
}
try {
var data = JSON.parse(buffer);
Expand Down

0 comments on commit a996e9c

Please sign in to comment.