[Updater > Module] Minor source cleanup
This commit is contained in:
parent
d5d55b54ca
commit
71ce4fe018
1 changed files with 4 additions and 12 deletions
|
@ -113,18 +113,10 @@ const hostPassed = (skip = skipModule) => {
|
|||
};
|
||||
|
||||
const checkModules = async () => {
|
||||
try {
|
||||
remote = await new Promise((res) => request({
|
||||
url: baseUrl + '/versions.json',
|
||||
qs
|
||||
}, (e, r, b) => res(JSON.parse(b))));
|
||||
} catch (e) {
|
||||
log('Modules', 'Check failed', e);
|
||||
|
||||
return events.emit('checked', {
|
||||
failed: true
|
||||
});
|
||||
}
|
||||
remote = await new Promise((res) => request({
|
||||
url: baseUrl + '/versions.json',
|
||||
qs
|
||||
}, (e, r, b) => res(JSON.parse(b))));
|
||||
|
||||
for (const name in installed) {
|
||||
const inst = installed[name].installedVersion;
|
||||
|
|
Loading…
Reference in a new issue