From 3a1e837f8bbbdf129fe2af4361f6d6d8dc5d7196 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 10 Mar 2016 13:23:14 -0800 Subject: [PATCH] Don't collect results in exit event callback --- lib/common/asar.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/common/asar.js b/lib/common/asar.js index f45e62b176de..aeff18916a16 100644 --- a/lib/common/asar.js +++ b/lib/common/asar.js @@ -24,14 +24,12 @@ // Clean cache on quit. process.on('exit', function() { - var archive, p, results; - results = []; + var archive, p; for (p in cachedArchives) { if (!hasProp.call(cachedArchives, p)) continue; archive = cachedArchives[p]; - results.push(archive.destroy()); + archive.destroy(); } - return results; }); // Separate asar package's path from full path.