From fada0d6b66d37f111e14bb397d2682859cc58af0 Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 20 Apr 2022 19:44:58 +0100 Subject: [PATCH] [Updater > Module] Minor source cleanup --- src/updater/moduleUpdater.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/updater/moduleUpdater.js b/src/updater/moduleUpdater.js index 84ec55d..4c7760f 100644 --- a/src/updater/moduleUpdater.js +++ b/src/updater/moduleUpdater.js @@ -17,7 +17,7 @@ let skipHost, skipModule, basePath, manifestPath, downloadPath, hostUpdater, baseUrl, baseQuery, - checking, hostAvail, lastUpdate; + checking, hostAvail, last; const resetTracking = () => { const base = { @@ -310,7 +310,7 @@ const finishInstall = (name, ver, success) => { log('Modules', 'Finished', `${name}@${ver}`); if (installing.done === downloading.total) { - if (!installing.fail) lastUpdate = Date.now(); + if (!installing.fail) last = Date.now(); events.emit('installing-modules-finished', { succeeded: installing.total - installing.fail, @@ -330,7 +330,7 @@ exports.checkForUpdates = () => { events.emit('checking-for-updates'); - if (skipHost || lastUpdate > Date.now() - 10000) hostPassed(true); + if (skipHost || last > Date.now() - 10000) hostPassed(true); else hostUpdater.checkForUpdates(); };