Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Style

  • Loading branch information...
commit ac92d7205a796bcaec2f4b44ebcd4f46c52e1b85 1 parent 12ff635
Brian J Brennan brianloveswords authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  controllers/issuer.js
  2. +1 −1  lib/baker.js
2  controllers/issuer.js
View
@@ -179,7 +179,7 @@ exports.issuerBadgeAddFromAssertion = function(req, res, next) {
// grabbing the remote badge image
var imageUrl = qualifyUrl(assertion.badge.image, assertion.badge.issuer.origin);
remote.badgeImage(imageUrl, function(err, imagedata) {
- if(err){
+ if (err){
var error_msg = "trying to grab image at url " + imageUrl + " got error " + err;
logger.error(error_msg);
return res.json({ message: error_msg }, 502);
2  lib/baker.js
View
@@ -31,7 +31,7 @@ exports.getDataFromImage = function(pnginput) {
var badgedata;
var err = new Error();
err.name = 'ParseError';
- try{
+ try {
badgedata = metapng.read(pnginput, KEYWORD);
}
catch (ex) {

2 comments on commit ac92d72

Mike Larsson
Owner

Ah, thanks. Hopefully one day I'll remember to do my own style check.

Brian J Brennan

One day hopefully you won't have to -- I'm going to do a grand style cleanup, add a .jshintrc and add a make task that runs jshint automatically with the test suite, like I'm doing with gogo -- https://github.com/brianloveswords/gogo/blob/master/.jshintrc, https://github.com/brianloveswords/gogo/blob/master/Makefile

Please sign in to comment.
Something went wrong with that request. Please try again.