[Updater > Module] Minor source cleanup
This commit is contained in:
parent
71ce4fe018
commit
9ed1b0b01b
|
@ -162,8 +162,6 @@ const downloadModule = async (name, ver) => {
|
||||||
await new Promise((res) => file.on('close', res));
|
await new Promise((res) => file.on('close', res));
|
||||||
|
|
||||||
|
|
||||||
if (!installed[name]) installed[name] = {};
|
|
||||||
|
|
||||||
if (success) commitManifest();
|
if (success) commitManifest();
|
||||||
else downloading.fail++;
|
else downloading.fail++;
|
||||||
|
|
||||||
|
@ -227,7 +225,7 @@ const installModule = async (name, ver, path) => {
|
||||||
proc.on('close', () => {
|
proc.on('close', () => {
|
||||||
if (err) return;
|
if (err) return;
|
||||||
|
|
||||||
installed[name].installedVersion = ver;
|
installed[name] = { installedVersion: ver };
|
||||||
commitManifest();
|
commitManifest();
|
||||||
|
|
||||||
finishInstall(name, ver, true);
|
finishInstall(name, ver, true);
|
||||||
|
|
Loading…
Reference in New Issue