Code cleanup

This commit is contained in:
Jake
2015-01-29 19:09:02 -06:00
parent 32c3ece12d
commit ffcd023c05
6 changed files with 8 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ function extract_url(profile, property) {
});
}
return url;
};
}
// exracts the skin url of a +profile+ object
// returns null when no url found (user has no skin)

View File

@@ -38,7 +38,7 @@ exp.extract_helm = function(uuid, facefile, buffer, outname, callback) {
if (err) {
callback(err);
} else {
face_img.toBuffer("png", {compression: "none"}, function(err, face_buffer) {
face_img.toBuffer("png", { compression: "none" }, function(err, face_buffer) {
skin_img.crop(40, 8, 47, 15, function(err, helm_img) {
if (err) {
callback(err);
@@ -99,7 +99,7 @@ exp.open_skin = function(uuid, skinpath, callback) {
fs.readFile(skinpath, function(err, buf) {
if (err) {
logging.error(uuid + " error while opening skin file: " + err);
callback(err, null)
callback(err, null);
} else {
callback(null, buf);
}