浏览代码

Clean results from redownload details

Gaël Métais 4 年之前
父节点
当前提交
3b0bd172ba
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      lib/tools/redownload/redownload.js

+ 9 - 0
lib/tools/redownload/redownload.js

@@ -195,6 +195,8 @@ var Redownload = function() {
                     offenders: offenders
                 };
 
+                cleanResults(results);
+
                 deferred.resolve(data);
             }
         });
@@ -1010,6 +1012,13 @@ var Redownload = function() {
         }
     }
 
+    // Clean all the pollution this module added to the results
+    function cleanResults(requests) {
+        requests.forEach(function(req) {
+            delete req.weightCheck;
+        });
+    }
+
     return {
         recheckAllFiles: recheckAllFiles,
         listRequestWeight: listRequestWeight,