ソースを参照

cache_err wouldn't be defined

jomo 10 年 前
コミット
48c2a55995
1 ファイル変更1 行追加1 行削除
  1. 1 1
      lib/helpers.js

+ 1 - 1
lib/helpers.js

@@ -184,7 +184,7 @@ function store_images(rid, userId, cache_details, type, callback) {
         store_cape(rid, userId, profile, cache_details, function(err, cape_hash) {
         store_cape(rid, userId, profile, cache_details, function(err, cape_hash) {
           if (err && !cape_hash) {
           if (err && !cape_hash) {
             // an error occured, not caching. we can try in 60 seconds
             // an error occured, not caching. we can try in 60 seconds
-            callback_for(userId, "cape", (err || cache_err), cape_hash);
+            callback_for(userId, "cape", (err), cape_hash);
           } else {
           } else {
             cache.save_hash(rid, userId, undefined, cape_hash, function(cache_err) {
             cache.save_hash(rid, userId, undefined, cape_hash, function(cache_err) {
               callback_for(userId, "cape", (err || cache_err), cape_hash);
               callback_for(userId, "cape", (err || cache_err), cape_hash);