[Updater > v2] Minor source cleanup

This commit is contained in:
Ducko 2022-04-01 21:17:07 +01:00
parent b0dd7d01a0
commit 8e033ba331

View file

@ -162,11 +162,7 @@ class Updater extends EventEmitter {
_commitModulesInner(versions) {
const base = join(this._getHostPath(), 'modules');
for (const mod in versions.current_modules) {
const path = join(base, `${mod}-${versions.current_modules[mod]}`);
if (!Module.globalPaths.includes(path)) Module.globalPaths.push(path);
}
for (const mod in versions.current_modules) Module.globalPaths.push(join(base, `${mod}-${versions.current_modules[mod]}`));
}
_recordDownloadProgress(name, progress) {