[Updater > v2] Minor source cleanup
This commit is contained in:
parent
b0dd7d01a0
commit
8e033ba331
1 changed files with 1 additions and 5 deletions
|
@ -162,11 +162,7 @@ class Updater extends EventEmitter {
|
||||||
_commitModulesInner(versions) {
|
_commitModulesInner(versions) {
|
||||||
const base = join(this._getHostPath(), 'modules');
|
const base = join(this._getHostPath(), 'modules');
|
||||||
|
|
||||||
for (const mod in versions.current_modules) {
|
for (const mod in versions.current_modules) Module.globalPaths.push(join(base, `${mod}-${versions.current_modules[mod]}`));
|
||||||
const path = join(base, `${mod}-${versions.current_modules[mod]}`);
|
|
||||||
|
|
||||||
if (!Module.globalPaths.includes(path)) Module.globalPaths.push(path);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_recordDownloadProgress(name, progress) {
|
_recordDownloadProgress(name, progress) {
|
||||||
|
|
Loading…
Reference in a new issue