[Splash > Backend] Minor source cleanup

pull/66/head
Oj 2 years ago
parent 042e495b7b
commit 98cad6fcc3

@ -204,13 +204,13 @@ const initOld = () => { // "Old" (not v2 / new, win32 only)
installs.record(name, '', cur, total);
});
const segmentCallback = (tracker) => (({ name }) => {
const segment = (tracker) => (({ name }) => {
tracker.record(name, 'Complete');
if (name === 'host') moduleUpdater.quitAndInstallUpdates();
});
on('downloaded-module', segmentCallback(downloads));
on('installed-module', segmentCallback(installs));
on('downloaded-module', segment(downloads));
on('installed-module', segment(installs));
on('installing-modules-finished', check);

Loading…
Cancel
Save