From 9dde7e31b583cb238599ad05ae6f0bbdb81e2b71 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 22 Nov 2014 01:30:50 +0100 Subject: [PATCH] don't cache on fail --- modules/helpers.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/helpers.js b/modules/helpers.js index eafd654..eb96e01 100644 --- a/modules/helpers.js +++ b/modules/helpers.js @@ -26,8 +26,8 @@ function store_images(uuid, details, callback) { // Username handling if (uuid.length <= 16) { - skinurl = "https://skins.minecraft.net/MinecraftSkins/" + uuid + ".png" - console.log('is username') + skinurl = "https://skins.minecraft.net/MinecraftSkins/" + uuid + ".png"; + console.log('is username'); } else { skinurl = skin_url(profile); } @@ -48,9 +48,6 @@ function store_images(uuid, details, callback) { // download skin, extract face/helm networking.skin_file(skinurl, facepath, helmpath, function(err) { if (err) { - if (uuid.length <= 16) { - cache.save_hash(uuid, null); - } callback(err, null); } else { cache.save_hash(uuid, hash);