From 6a84c5a1d0f26c9af7c1340ab28f1ea660971a32 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 18 Feb 2015 21:35:34 +0100 Subject: [PATCH] move comment to proper position --- modules/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/helpers.js b/modules/helpers.js index dc6a82b..5c88cf2 100644 --- a/modules/helpers.js +++ b/modules/helpers.js @@ -209,6 +209,8 @@ exp.get_image_hash = function(rid, userId, type, callback) { } store_images(rid, userId, details, type, function(err, new_hash) { if (err) { + // we might have a hash although an error occured + // (e.g. Mojang servers not reachable, using outdated hash) callback(err, -1, details && hash); } else { var status = details && (hash === new_hash) ? 3 : 2; @@ -241,8 +243,6 @@ exp.get_avatar = function(rid, userId, helm, size, callback) { if (img_err) { callback(img_err, -1, null, skin_hash); } else { - // we might have a hash although an error occured - // (e.g. Mojang servers not reachable, using outdated hash) callback(err, (err ? -1 : status), result, skin_hash); } });