From e256e8fea1c14570a4aa665ca3295fffb8d71cd9 Mon Sep 17 00:00:00 2001 From: Oj Date: Sat, 23 Apr 2022 14:29:47 +0100 Subject: [PATCH] [Updater > Module] Minor source cleanup --- src/updater/moduleUpdater.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/updater/moduleUpdater.js b/src/updater/moduleUpdater.js index e0fef9a..d92c7b6 100644 --- a/src/updater/moduleUpdater.js +++ b/src/updater/moduleUpdater.js @@ -73,14 +73,6 @@ exports.init = (endpoint, { releaseChannel, version }) => { })() : autoUpdater; - hostUpdater.on('update-available', () => { - log('Modules', 'Host available'); - - events.emit('checked', { - count: 1 - }); - }); - hostUpdater.on('update-progress', progress => events.emit('downloading-module', { name: 'host', progress })); hostUpdater.on('update-not-available', hostPassed); @@ -139,21 +131,19 @@ const checkModules = async () => { }); } - let doing = 0; for (const name in installed) { const inst = installed[name].installedVersion; const rem = remote[name]; if (inst !== rem) { log('Modules', 'Update:', name, inst, '->', rem); - doing++; downloadModule(name, rem); } } events.emit('checked', { - count: doing + count: downloading.total }); };