From e24a05fc709375718e9024aa6752e0f1632b864e Mon Sep 17 00:00:00 2001 From: Oj Date: Tue, 15 Mar 2022 22:27:06 +0000 Subject: [PATCH] [Updater > Module] Minor source cleanup --- src/updater/moduleUpdater.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/updater/moduleUpdater.js b/src/updater/moduleUpdater.js index 9a94310..0ad9608 100644 --- a/src/updater/moduleUpdater.js +++ b/src/updater/moduleUpdater.js @@ -262,11 +262,11 @@ const downloadModule = async (name, ver) => { downloading.done++; if (downloading.done === downloading.total) { - const successes = downloading.total - downloading.fail; - log('Modules', 'Done downloads', `[success: ${successes}]`, `[failure: ${downloading.fail}]`); + const succeeded = downloading.total - downloading.fail; + log('Modules', 'Done downloads', `${succeeded}/${downloading.total} success`); events.emit('downloading-modules-finished', { - succeeded: successes, + succeeded, failed: downloading.fail }); } @@ -351,11 +351,11 @@ const finishInstall = (name, ver, success) => { log('Modules', 'Finished', `${name}@${ver}`, `(${installing.done}/${installing.total})`); if ((bootstrapping && installing.done === installing.total) || installing.done === downloading.total) { - const successes = installing.total - installing.fail; - log('Modules', 'Done installs', `[success: ${successes}]`, `[failure: ${installing.fail}]`); + const succeeded = installing.total - installing.fail; + log('Modules', 'Done installs', `${succeeded}/${installing.total} success`); events.emit('installing-modules-finished', { - succeeded: success, + succeeded, failed: installing.fail });