[Splash > Backend] Minor source cleanup
This commit is contained in:
parent
042e495b7b
commit
98cad6fcc3
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue